Skip to content

Commit 106a692

Browse files
Craig MautnerAndroid (Google) Code Review
authored andcommitted
Merge "Keep callback reference from being null." into jb-mr1-dev
2 parents 3ff8e1a + 00baebe commit 106a692

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ private void maybeCreateKeyguardLocked(boolean enableScreenRotation) {
164164
}
165165

166166
private void inflateKeyguardView() {
167-
if (mKeyguardView != null) {
168-
mKeyguardHost.removeView(mKeyguardView);
167+
View v = mKeyguardHost.findViewById(R.id.keyguard_host_view);
168+
if (v != null) {
169+
mKeyguardHost.removeView(v);
169170
}
170171
// TODO: Remove once b/7094175 is fixed
171172
Slog.d(TAG, "inflateKeyguardView: b/7094175 mContext.config="

0 commit comments

Comments
 (0)