File tree Expand file tree Collapse file tree
app/src/main/java/com/iriswallet/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import android.view.View
1414import android.view.ViewTreeObserver
1515import android.view.inputmethod.InputMethodManager
1616import android.widget.EditText
17- import androidx.activity.OnBackPressedCallback
1817import androidx.activity.viewModels
1918import androidx.appcompat.app.AlertDialog
2019import androidx.appcompat.app.AppCompatActivity
@@ -137,15 +136,6 @@ class MainActivity : AppCompatActivity() {
137136 val manager = (getSystemService(Context .NOTIFICATION_SERVICE ) as NotificationManager )
138137 manager.cancelAll()
139138
140- onBackPressedDispatcher.addCallback(
141- this ,
142- object : OnBackPressedCallback (true ) {
143- override fun handleOnBackPressed () {
144- if (! backEnabled) return else navController.navigateUp(appBarConfiguration)
145- }
146- }
147- )
148-
149139 viewModel.refreshedFungibles.observe(this ) {
150140 if (! inMainFragment) it.getContentIfNotHandled()
151141 }
You can’t perform that action at this time.
0 commit comments