Merge "Fix bug 5154361 - New force close dialog text breaks button order rules"
This commit is contained in:
@@ -60,12 +60,12 @@ class AppErrorDialog extends BaseErrorDialog {
|
||||
|
||||
setCancelable(false);
|
||||
|
||||
setButton(DialogInterface.BUTTON_NEGATIVE,
|
||||
setButton(DialogInterface.BUTTON_POSITIVE,
|
||||
res.getText(com.android.internal.R.string.force_close),
|
||||
mHandler.obtainMessage(FORCE_QUIT));
|
||||
|
||||
if (app.errorReportReceiver != null) {
|
||||
setButton(DialogInterface.BUTTON_POSITIVE,
|
||||
setButton(DialogInterface.BUTTON_NEGATIVE,
|
||||
res.getText(com.android.internal.R.string.report),
|
||||
mHandler.obtainMessage(FORCE_QUIT_AND_REPORT));
|
||||
}
|
||||
|
||||
@@ -77,15 +77,15 @@ class AppNotRespondingDialog extends BaseErrorDialog {
|
||||
? res.getString(resid, name1.toString(), name2.toString())
|
||||
: res.getString(resid, name1.toString()));
|
||||
|
||||
setButton(DialogInterface.BUTTON_NEGATIVE,
|
||||
setButton(DialogInterface.BUTTON_POSITIVE,
|
||||
res.getText(com.android.internal.R.string.force_close),
|
||||
mHandler.obtainMessage(FORCE_CLOSE));
|
||||
setButton(DialogInterface.BUTTON_NEUTRAL,
|
||||
setButton(DialogInterface.BUTTON_NEGATIVE,
|
||||
res.getText(com.android.internal.R.string.wait),
|
||||
mHandler.obtainMessage(WAIT));
|
||||
|
||||
if (app.errorReportReceiver != null) {
|
||||
setButton(DialogInterface.BUTTON_POSITIVE,
|
||||
setButton(DialogInterface.BUTTON_NEUTRAL,
|
||||
res.getText(com.android.internal.R.string.report),
|
||||
mHandler.obtainMessage(WAIT_AND_REPORT));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user