Loading packages/SystemUI/src/com/android/systemui/statusbar/KeyguardAffordanceView.java +10 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,13 @@ public class KeyguardAffordanceView extends ImageView { updateIconColor(); } /** * If current drawable should be tinted. */ public boolean shouldTint() { return mShouldTint; } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); Loading @@ -168,6 +175,9 @@ public class KeyguardAffordanceView extends ImageView { } public void setPreviewView(View v) { if (mPreviewView == v) { return; } View oldPreviewView = mPreviewView; mPreviewView = v; if (mPreviewView != null) { Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java +8 −7 Original line number Diff line number Diff line Loading @@ -337,7 +337,10 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL private void updateRightAffordanceIcon() { IconState state = mRightButton.getIcon(); mRightAffordanceView.setVisibility(!mDozing && state.isVisible ? View.VISIBLE : View.GONE); if (state.drawable != mRightAffordanceView.getDrawable() || state.tint != mRightAffordanceView.shouldTint()) { mRightAffordanceView.setImageDrawable(state.drawable, state.tint); } mRightAffordanceView.setContentDescription(state.contentDescription); } Loading Loading @@ -389,7 +392,10 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL private void updateLeftAffordanceIcon() { IconState state = mLeftButton.getIcon(); mLeftAffordanceView.setVisibility(!mDozing && state.isVisible ? View.VISIBLE : View.GONE); if (state.drawable != mLeftAffordanceView.getDrawable() || state.tint != mLeftAffordanceView.shouldTint()) { mLeftAffordanceView.setImageDrawable(state.drawable, state.tint); } mLeftAffordanceView.setContentDescription(state.contentDescription); } Loading Loading @@ -715,11 +721,6 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL updateLeftPreview(); } public void onKeyguardShowingChanged() { updateLeftAffordance(); inflateCameraPreview(); } private void setRightButton(IntentButton button) { mRightButton = button; updateRightAffordanceIcon(); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +0 −1 Original line number Diff line number Diff line Loading @@ -1304,7 +1304,6 @@ public class NotificationPanelView extends PanelView implements mKeyguardStatusBar.setAlpha(1f); mKeyguardStatusBar.setVisibility(keyguardShowing ? View.VISIBLE : View.INVISIBLE); if (keyguardShowing && oldState != mBarState) { mKeyguardBottomArea.onKeyguardShowingChanged(); if (mQs != null) { mQs.hideImmediately(); } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/KeyguardAffordanceView.java +10 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,13 @@ public class KeyguardAffordanceView extends ImageView { updateIconColor(); } /** * If current drawable should be tinted. */ public boolean shouldTint() { return mShouldTint; } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); Loading @@ -168,6 +175,9 @@ public class KeyguardAffordanceView extends ImageView { } public void setPreviewView(View v) { if (mPreviewView == v) { return; } View oldPreviewView = mPreviewView; mPreviewView = v; if (mPreviewView != null) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java +8 −7 Original line number Diff line number Diff line Loading @@ -337,7 +337,10 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL private void updateRightAffordanceIcon() { IconState state = mRightButton.getIcon(); mRightAffordanceView.setVisibility(!mDozing && state.isVisible ? View.VISIBLE : View.GONE); if (state.drawable != mRightAffordanceView.getDrawable() || state.tint != mRightAffordanceView.shouldTint()) { mRightAffordanceView.setImageDrawable(state.drawable, state.tint); } mRightAffordanceView.setContentDescription(state.contentDescription); } Loading Loading @@ -389,7 +392,10 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL private void updateLeftAffordanceIcon() { IconState state = mLeftButton.getIcon(); mLeftAffordanceView.setVisibility(!mDozing && state.isVisible ? View.VISIBLE : View.GONE); if (state.drawable != mLeftAffordanceView.getDrawable() || state.tint != mLeftAffordanceView.shouldTint()) { mLeftAffordanceView.setImageDrawable(state.drawable, state.tint); } mLeftAffordanceView.setContentDescription(state.contentDescription); } Loading Loading @@ -715,11 +721,6 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL updateLeftPreview(); } public void onKeyguardShowingChanged() { updateLeftAffordance(); inflateCameraPreview(); } private void setRightButton(IntentButton button) { mRightButton = button; updateRightAffordanceIcon(); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +0 −1 Original line number Diff line number Diff line Loading @@ -1304,7 +1304,6 @@ public class NotificationPanelView extends PanelView implements mKeyguardStatusBar.setAlpha(1f); mKeyguardStatusBar.setVisibility(keyguardShowing ? View.VISIBLE : View.INVISIBLE); if (keyguardShowing && oldState != mBarState) { mKeyguardBottomArea.onKeyguardShowingChanged(); if (mQs != null) { mQs.hideImmediately(); } Loading