Merge pull request #3410 from nextcloud/bugfix/noid/fixUploadFromNextcloudCrash

fix crash when trying to upload from nextcloud
This commit is contained in:
Marcel Hibbe 2023-11-02 12:10:59 +01:00 committed by GitHub
commit 566eb0a9a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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