Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aef65ab0 authored by Robert Horvath's avatar Robert Horvath Committed by Android (Google) Code Review
Browse files

Merge "PackageInstaller: Initial focus in non-touch mode on Cancel" into rvc-dev

parents 9cc8c2e6 a4b5e968
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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();
        }
    }

    /**