enh : make folder placeholder translatable
This commit is contained in:
1 parent
94d2ba5cfc
commit
e85c5bc7b2
2 files changed
+4
-1
No files matched your search
@@ -107,6 +107,8 @@
|
||||
<string name="apps_in_folder_label">Hide folder apps</string>
|
||||
<string name="apps_in_folder_description">Apps assigned to folders are excluded from app lists</string>
|
||||
|
||||
<string name="my_folder_label">My folder</string>
|
||||
|
||||
<!-- A11y description -->
|
||||
<string name="accessibility_service_description">To lock your phone when performing a gesture, and to open Recents via gesture, Lawnchair requires accessibility access.\n\nLawnchair doesn\'t watch any user action, though the privilege to do so is required for all accessibility services. Lawnchair discards any event sent by the system.\n\nIn order to lock your phone, or to open Recents, Lawnchair uses the performGlobalAction Accessibility service.</string>
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import androidx.lifecycle.ViewModel
|
||||
import androidx.lifecycle.viewModelScope
|
||||
import app.lawnchair.data.folder.service.FolderService
|
||||
import app.lawnchair.ui.preferences.destinations.Action
|
||||
import com.android.launcher3.R
|
||||
import com.android.launcher3.model.data.AppInfo
|
||||
import com.android.launcher3.model.data.FolderInfo
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
@@ -24,7 +25,7 @@ class FolderViewModel(context: Context) : ViewModel() {
|
||||
private val _folders = MutableStateFlow<List<FolderInfo>>(emptyList())
|
||||
val folders: StateFlow<List<FolderInfo>> = _folders.asStateFlow()
|
||||
|
||||
private val _currentTitle = MutableStateFlow("My Folder")
|
||||
private val _currentTitle = MutableStateFlow(context.resources.getString(R.string.my_folder_label))
|
||||
val currentTitle: StateFlow<String> = _currentTitle.asStateFlow()
|
||||
|
||||
private val _action = MutableStateFlow(Action.DEFAULT)
|
||||
|
||||
Reference in new issue
Block a user