Start service from mobile data dialog response

This commit is contained in:
Adeel Zafar 2019-07-21 05:21:06 +05:00
parent 5d08156b1e
commit e784200649

View File

@ -1116,7 +1116,8 @@ public class MainActivity extends BaseActivity implements WebViewCallback,
AlertDialog.Builder builder = new AlertDialog.Builder(this, dialogStyle());
builder.setPositiveButton(this.getString(R.string.yes), (dialog, id) -> disableMobileData());
builder.setNegativeButton(android.R.string.no, (dialog, id) -> wifiHotspotManager.setWifiEnabled(null, true));
builder.setNegativeButton(android.R.string.no,
(dialog, id) -> startService(ACTION_TURN_ON_BEFORE_O));
builder.setTitle(this.getString(R.string.mobile_data_enabled));
builder.setMessage(
this.getString(R.string.mobile_data_message) + "\n" + this.getString(