Skip to content

Commit

Permalink
clear warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwajith-Shettigar committed Jun 26, 2024
1 parent 537913d commit 92bfbd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class RevisionCardActivity :
revisionCardActivityPresenter.dismissConceptCard()
}

@Deprecated("Deprecated in Java")
override fun onBackPressed() {
revisionCardActivityPresenter.setReadingTextSizeMedium()
onReturnToTopicRequested()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import org.oppia.android.util.data.DataProviders.Companion.toLiveData
import javax.inject.Inject

/** The presenter for [RevisionCardActivity]. */
@Suppress("DEPRECATION")
@ActivityScope
class RevisionCardActivityPresenter @Inject constructor(
private val activity: AppCompatActivity,
Expand Down Expand Up @@ -70,11 +71,10 @@ class RevisionCardActivityPresenter @Inject constructor(
}

retrieveReadingTextSize().observe(
activity,
{ result ->
(activity as DefaultFontSizeStateListener).onDefaultFontSizeLoaded(result)
}
)
activity
) { result ->
(activity as DefaultFontSizeStateListener).onDefaultFontSizeLoaded(result)
}

revisionCardToolbar = binding.revisionCardToolbar
revisionCardToolbarTitle = binding.revisionCardToolbarTitle
Expand Down

0 comments on commit 92bfbd8

Please sign in to comment.