Update text of WiFi toggle prompt buttons
Change-Id: Ia9d9a44cddc72fb61b80393e61586e7a4f9801d6
This commit is contained in:
@@ -225,9 +225,9 @@ public class RequestToggleWiFiActivity extends AlertActivity
|
|||||||
|
|
||||||
switch (mState) {
|
switch (mState) {
|
||||||
case STATE_ENABLE: {
|
case STATE_ENABLE: {
|
||||||
mAlertParams.mPositiveButtonText = getString(android.R.string.ok);
|
mAlertParams.mPositiveButtonText = getString(R.string.allow);
|
||||||
mAlertParams.mPositiveButtonListener = this;
|
mAlertParams.mPositiveButtonListener = this;
|
||||||
mAlertParams.mNegativeButtonText = getString(android.R.string.no);
|
mAlertParams.mNegativeButtonText = getString(R.string.deny);
|
||||||
mAlertParams.mNegativeButtonListener = this;
|
mAlertParams.mNegativeButtonListener = this;
|
||||||
mAlertParams.mMessage = getString(R.string.wifi_ask_enable, mAppLabel);
|
mAlertParams.mMessage = getString(R.string.wifi_ask_enable, mAppLabel);
|
||||||
} break;
|
} break;
|
||||||
@@ -245,9 +245,9 @@ public class RequestToggleWiFiActivity extends AlertActivity
|
|||||||
} break;
|
} break;
|
||||||
|
|
||||||
case STATE_DISABLE: {
|
case STATE_DISABLE: {
|
||||||
mAlertParams.mPositiveButtonText = getString(android.R.string.ok);
|
mAlertParams.mPositiveButtonText = getString(R.string.allow);
|
||||||
mAlertParams.mPositiveButtonListener = this;
|
mAlertParams.mPositiveButtonListener = this;
|
||||||
mAlertParams.mNegativeButtonText = getString(android.R.string.no);
|
mAlertParams.mNegativeButtonText = getString(R.string.deny);
|
||||||
mAlertParams.mNegativeButtonListener = this;
|
mAlertParams.mNegativeButtonListener = this;
|
||||||
mAlertParams.mMessage = getString(R.string.wifi_ask_disable, mAppLabel);
|
mAlertParams.mMessage = getString(R.string.wifi_ask_disable, mAppLabel);
|
||||||
} break;
|
} break;
|
||||||
|
Reference in New Issue
Block a user