mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-23 06:46:02 +00:00
Fix the build: the rail's prefs without androidx.preference, the Description icon import, Guide index as Int
This commit is contained in:
1 parent
9ad922348b
commit
ecd0aecbc5
3 files changed
+5
-3
No files matched your search
@@ -164,9 +164,9 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback {
|
|||||||
// Xbox button, or a pad the client hides the controls for, has no other
|
// Xbox button, or a pad the client hides the controls for, has no other
|
||||||
// way to open the client's menu in a game.
|
// way to open the client's menu in a game.
|
||||||
drawerOpen = false
|
drawerOpen = false
|
||||||
padBridge?.applyTouch { st -> st.setPressed(com.steamdeck.launcher.input.GamepadState.IDX_BUTTON_MODE, true) }
|
padBridge?.applyTouch { st -> st.setPressed(com.steamdeck.launcher.input.GamepadState.IDX_BUTTON_MODE.toInt(), true) }
|
||||||
Handler(Looper.getMainLooper()).postDelayed({
|
Handler(Looper.getMainLooper()).postDelayed({
|
||||||
padBridge?.applyTouch { st -> st.setPressed(com.steamdeck.launcher.input.GamepadState.IDX_BUTTON_MODE, false) }
|
padBridge?.applyTouch { st -> st.setPressed(com.steamdeck.launcher.input.GamepadState.IDX_BUTTON_MODE.toInt(), false) }
|
||||||
}, 90)
|
}, 90)
|
||||||
}) else null,
|
}) else null,
|
||||||
onProtons = { refreshProtons(); showProtons = true },
|
onProtons = { refreshProtons(); showProtons = true },
|
||||||
|
|||||||
@@ -120,7 +120,8 @@ class RailState internal constructor(
|
|||||||
@Composable
|
@Composable
|
||||||
fun rememberRailState(screenKey: String): RailState {
|
fun rememberRailState(screenKey: String): RailState {
|
||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
val prefs = remember { androidx.preference.PreferenceManager.getDefaultSharedPreferences(context) }
|
// The same file the File Manager keeps its own browse settings in (no androidx.preference here).
|
||||||
|
val prefs = remember { context.getSharedPreferences("file_manager", android.content.Context.MODE_PRIVATE) }
|
||||||
val isLandscape = LocalConfiguration.current.orientation == Configuration.ORIENTATION_LANDSCAPE
|
val isLandscape = LocalConfiguration.current.orientation == Configuration.ORIENTATION_LANDSCAPE
|
||||||
|
|
||||||
val choseKey = "rail_${screenKey}_userChose"
|
val choseKey = "rail_${screenKey}_userChose"
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ import androidx.compose.material.icons.filled.PushPin
|
|||||||
import androidx.compose.material.icons.filled.Storage
|
import androidx.compose.material.icons.filled.Storage
|
||||||
import androidx.compose.material.icons.filled.Smartphone
|
import androidx.compose.material.icons.filled.Smartphone
|
||||||
import androidx.compose.material.icons.filled.Download
|
import androidx.compose.material.icons.filled.Download
|
||||||
|
import androidx.compose.material.icons.filled.Description
|
||||||
import androidx.compose.material.icons.filled.Image
|
import androidx.compose.material.icons.filled.Image
|
||||||
import androidx.compose.material.icons.filled.SportsEsports
|
import androidx.compose.material.icons.filled.SportsEsports
|
||||||
import androidx.compose.material3.AlertDialog
|
import androidx.compose.material3.AlertDialog
|
||||||
|
|||||||
Reference in new issue
Block a user