Hide quickstep pref when not enabled
This commit is contained in:
1 parent
e8563b34ea
commit
2b3e266b93
2 files changed
+8
-7
No files matched your search
@@ -25,9 +25,7 @@ import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.provider.Settings
|
||||
import android.util.Log
|
||||
import androidx.annotation.Keep
|
||||
import app.lawnchair.util.restartLauncher
|
||||
import com.android.launcher3.LauncherAppState
|
||||
import com.android.launcher3.Utilities
|
||||
import com.android.quickstep.RecentsActivity
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ package app.lawnchair.ui.preferences
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import app.lawnchair.LawnchairApp
|
||||
import app.lawnchair.preferences.getMajorVersion
|
||||
import app.lawnchair.ui.preferences.components.PreferenceCategory
|
||||
import com.android.launcher3.R
|
||||
@@ -44,11 +45,13 @@ fun PreferencesDashboard() {
|
||||
route = Routes.FOLDERS
|
||||
)
|
||||
|
||||
PreferenceCategory(
|
||||
label = stringResource(R.string.quickstep_label),
|
||||
iconResource = R.drawable.ic_quickstep,
|
||||
route = Routes.QUICKSTEP
|
||||
)
|
||||
if (LawnchairApp.isRecentsEnabled) {
|
||||
PreferenceCategory(
|
||||
label = stringResource(R.string.quickstep_label),
|
||||
iconResource = R.drawable.ic_quickstep,
|
||||
route = Routes.QUICKSTEP
|
||||
)
|
||||
}
|
||||
|
||||
val context = LocalContext.current
|
||||
PreferenceCategory(
|
||||
|
||||
Reference in new issue
Block a user