Skip to content

Commit

Permalink
Migrate from onBackPressed in ResumeLessonActivityPresenter
Browse files Browse the repository at this point in the history
  • Loading branch information
dattasneha committed Aug 28, 2024
1 parent 3ccd363 commit 0df3801
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.oppia.android.app.resumelesson

import androidx.activity.OnBackPressedCallback
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
Expand Down Expand Up @@ -73,8 +74,7 @@ class ResumeLessonActivityPresenter @Inject constructor(
context = activity,
ReadingTextSize.MEDIUM_TEXT_SIZE
)
@Suppress("DEPRECATION") // TODO(#5404): Migrate to a back pressed dispatcher.
activity.onBackPressed()
activity.onBackPressedDispatcher.onBackPressed()
}
}

Expand Down

0 comments on commit 0df3801

Please sign in to comment.