Finish the sims page when airplane mode on

Bug: 335392575
Test: verify UI
Change-Id: I9d1e4c243e195abe8c917dc83ffed175f7ef74ec
This commit is contained in:
songferngwang
2024-04-17 10:21:23 +00:00
parent a92051ad07
commit f8a48668b0
2 changed files with 17 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ object SimOnboardingPageProvider : SettingsPageProvider {
): String = "${name}/$subId"
}
private fun Context.getActivity(): Activity? = when (this) {
fun Context.getActivity(): Activity? = when (this) {
is Activity -> this
is ContextWrapper -> baseContext.getActivity()
else -> null