mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-19 10:45:13 +01:00
Merge pull request #3410 from nextcloud/bugfix/noid/fixUploadFromNextcloudCrash
fix crash when trying to upload from nextcloud
This commit is contained in:
commit
566eb0a9a3
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
package com.nextcloud.talk.remotefilebrowser.viewmodels
|
package com.nextcloud.talk.remotefilebrowser.viewmodels
|
||||||
|
|
||||||
import android.content.res.Resources
|
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import androidx.lifecycle.LiveData
|
import androidx.lifecycle.LiveData
|
||||||
import androidx.lifecycle.MutableLiveData
|
import androidx.lifecycle.MutableLiveData
|
||||||
@ -96,7 +95,7 @@ constructor(
|
|||||||
get() = _selectedPaths
|
get() = _selectedPaths
|
||||||
|
|
||||||
init {
|
init {
|
||||||
val key = Resources.getSystem().getString(R.string.nc_file_browser_sort_by_key)
|
val key = appPreferences.context.resources.getString(R.string.nc_file_browser_sort_by_key)
|
||||||
sortingFlow = appPreferences.readString(key)
|
sortingFlow = appPreferences.readString(key)
|
||||||
CoroutineScope(Dispatchers.Main).launch {
|
CoroutineScope(Dispatchers.Main).launch {
|
||||||
var state = appPreferences.sorting
|
var state = appPreferences.sorting
|
||||||
|
Loading…
Reference in New Issue
Block a user