mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-25 14:02:36 -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
|
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_title,
|
||||||
R.string.hotspot_failed_message,
|
R.string.hotspot_failed_message,
|
||||||
R.string.go_to_wifi_settings_label,
|
R.string.go_to_wifi_settings_label,
|
||||||
|
@ -531,7 +531,7 @@ public class ZimHostActivity extends BaseActivity implements
|
|||||||
@Override public void onHotspotFailedToStart() {
|
@Override public void onHotspotFailedToStart() {
|
||||||
//Show a dialog to turn off default hotspot
|
//Show a dialog to turn off default hotspot
|
||||||
|
|
||||||
alertDialogShower.show(KiwixDialog.HotspotFailed.INSTANCE,
|
alertDialogShower.show(KiwixDialog.TurnOffHotspotManually.INSTANCE,
|
||||||
new Function0<Unit>() {
|
new Function0<Unit>() {
|
||||||
@Override public Unit invoke() {
|
@Override public Unit invoke() {
|
||||||
launchTetheringSettingsScreen();
|
launchTetheringSettingsScreen();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user