Merge "Re-inflate views in onOverlayChanged." into qt-dev
am: 08db266264
Change-Id: Iafc5fdc528636c3b8c02df5605c5e8feb9dc4c03
This commit is contained in:
@@ -477,6 +477,15 @@ public class NotificationPanelView extends PanelView implements
|
|||||||
}
|
}
|
||||||
mThemeResId = themeResId;
|
mThemeResId = themeResId;
|
||||||
|
|
||||||
|
reInflateViews();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onOverlayChanged() {
|
||||||
|
reInflateViews();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void reInflateViews() {
|
||||||
updateShowEmptyShadeView();
|
updateShowEmptyShadeView();
|
||||||
|
|
||||||
// Re-inflate the status view group.
|
// Re-inflate the status view group.
|
||||||
@@ -484,9 +493,9 @@ public class NotificationPanelView extends PanelView implements
|
|||||||
removeView(mKeyguardStatusView);
|
removeView(mKeyguardStatusView);
|
||||||
mKeyguardStatusView = (KeyguardStatusView) mInjectionInflationController
|
mKeyguardStatusView = (KeyguardStatusView) mInjectionInflationController
|
||||||
.injectable(LayoutInflater.from(mContext)).inflate(
|
.injectable(LayoutInflater.from(mContext)).inflate(
|
||||||
R.layout.keyguard_status_view,
|
R.layout.keyguard_status_view,
|
||||||
this,
|
this,
|
||||||
false);
|
false);
|
||||||
addView(mKeyguardStatusView, index);
|
addView(mKeyguardStatusView, index);
|
||||||
|
|
||||||
// Re-associate the clock container with the keyguard clock switch.
|
// Re-associate the clock container with the keyguard clock switch.
|
||||||
@@ -500,9 +509,9 @@ public class NotificationPanelView extends PanelView implements
|
|||||||
KeyguardBottomAreaView oldBottomArea = mKeyguardBottomArea;
|
KeyguardBottomAreaView oldBottomArea = mKeyguardBottomArea;
|
||||||
mKeyguardBottomArea = (KeyguardBottomAreaView) mInjectionInflationController
|
mKeyguardBottomArea = (KeyguardBottomAreaView) mInjectionInflationController
|
||||||
.injectable(LayoutInflater.from(mContext)).inflate(
|
.injectable(LayoutInflater.from(mContext)).inflate(
|
||||||
R.layout.keyguard_bottom_area,
|
R.layout.keyguard_bottom_area,
|
||||||
this,
|
this,
|
||||||
false);
|
false);
|
||||||
mKeyguardBottomArea.initFrom(oldBottomArea);
|
mKeyguardBottomArea.initFrom(oldBottomArea);
|
||||||
addView(mKeyguardBottomArea, index);
|
addView(mKeyguardBottomArea, index);
|
||||||
initBottomArea();
|
initBottomArea();
|
||||||
|
|||||||
Reference in New Issue
Block a user