Merge "Ensure OK/Cancel buttons always shown" into rvc-qpr-dev

This commit is contained in:
TreeHugger Robot
2021-01-11 10:06:22 +00:00
committed by Android (Google) Code Review

View File

@@ -343,17 +343,19 @@ public class PackageInstallerActivity extends AlertActivity {
if (!wasSetUp) {
return;
}
// load dummy layout with OK button disabled until we override this layout in
// startInstallConfirm
bindUi();
checkIfAllowedAndInitiateInstall();
}
@Override
protected void onResume() {
super.onResume();
if (mAppSnippet != null) {
// load dummy layout with OK button disabled until we override this layout in
// startInstallConfirm
bindUi();
checkIfAllowedAndInitiateInstall();
}
if (mOk != null) {
mOk.setEnabled(mEnableOk);
}