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) {
|
if (!wasSetUp) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// load dummy layout with OK button disabled until we override this layout in
|
|
||||||
// startInstallConfirm
|
|
||||||
bindUi();
|
|
||||||
checkIfAllowedAndInitiateInstall();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.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) {
|
if (mOk != null) {
|
||||||
mOk.setEnabled(mEnableOk);
|
mOk.setEnabled(mEnableOk);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user