mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 14:05:40 +03: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
1 changed files with 1 additions and 2 deletions
|
@ -22,7 +22,6 @@
|
|||
|
||||
package com.nextcloud.talk.remotefilebrowser.viewmodels
|
||||
|
||||
import android.content.res.Resources
|
||||
import android.util.Log
|
||||
import androidx.lifecycle.LiveData
|
||||
import androidx.lifecycle.MutableLiveData
|
||||
|
@ -96,7 +95,7 @@ constructor(
|
|||
get() = _selectedPaths
|
||||
|
||||
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)
|
||||
CoroutineScope(Dispatchers.Main).launch {
|
||||
var state = appPreferences.sorting
|
||||
|
|
Loading…
Reference in a new issue