mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 21:45:14 -04:00
Refactor KiwixDialog.TurnOffHotspotManually
This commit is contained in:
parent
04cf0398c6
commit
396526af9a
@ -45,7 +45,7 @@ sealed class KiwixDialog(
|
||||
null, R.string.request_enable_location, R.string.yes, android.R.string.no
|
||||
)
|
||||
|
||||
object HotspotFailed : KiwixDialog(
|
||||
object TurnOffHotspotManually : KiwixDialog(
|
||||
R.string.hotspot_failed_title,
|
||||
R.string.hotspot_failed_message,
|
||||
R.string.go_to_wifi_settings_label,
|
||||
|
@ -531,7 +531,7 @@ public class ZimHostActivity extends BaseActivity implements
|
||||
@Override public void onHotspotFailedToStart() {
|
||||
//Show a dialog to turn off default hotspot
|
||||
|
||||
alertDialogShower.show(KiwixDialog.HotspotFailed.INSTANCE,
|
||||
alertDialogShower.show(KiwixDialog.TurnOffHotspotManually.INSTANCE,
|
||||
new Function0<Unit>() {
|
||||
@Override public Unit invoke() {
|
||||
launchTetheringSettingsScreen();
|
||||
|
Loading…
x
Reference in New Issue
Block a user