Skip to content

Commit

Permalink
Enable predictive back gestures (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
mars885 authored Sep 16, 2024
1 parent 63986d8 commit 7dcf3f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:enableOnBackInvokedCallback="true"
android:theme="@style/GamedgeThemeSplash"
tools:ignore="Instantiatable">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.paulrybitskyi.gamedge.feature.image.viewer

import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxSize
Expand Down Expand Up @@ -114,7 +113,6 @@ private fun ImageViewerScreen(
val toolbarBackgroundColor = GamedgeTheme.colors.darkScrim

SystemBarsColorHandler(navBarColor = toolbarBackgroundColor)
BackHandler(onBack = onBackPressed)
Surface(
modifier = Modifier.fillMaxSize(),
color = Color.Black,
Expand Down

0 comments on commit 7dcf3f8

Please sign in to comment.