Skip to content

Commit

Permalink
enh : make folder placeholder translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSluffy committed Jan 23, 2025
1 parent 94d2ba5 commit e85c5bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lawnchair/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit e85c5bc

Please sign in to comment.