Merge "Ensure OK/Cancel buttons always shown" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b26c104b45
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user