mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-01 12:11:59 +00: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
|
||||
|
||||
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 New Issue
Block a user