Refactor KiwixDialog.TurnOffHotspotManually

This commit is contained in:
Adeel Zafar 2019-08-19 00:38:01 +05:00
parent 04cf0398c6
commit 396526af9a
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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();