Merge "PackageInstaller: Initial focus in non-touch mode on Cancel" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
aef65ab07b
@@ -406,6 +406,10 @@ public class PackageInstallerActivity extends AlertActivity {
|
||||
|
||||
mOk = mAlert.getButton(DialogInterface.BUTTON_POSITIVE);
|
||||
mOk.setEnabled(false);
|
||||
|
||||
if (!mOk.isInTouchMode()) {
|
||||
mAlert.getButton(DialogInterface.BUTTON_NEGATIVE).requestFocus();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user