Merge "Dim background when group notification expanded" into sc-dev
This commit is contained in:
@@ -203,6 +203,14 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
|
|||||||
mBackgroundNormal.setCustomBackground(R.drawable.notification_material_bg);
|
mBackgroundNormal.setCustomBackground(R.drawable.notification_material_bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected boolean hideBackground() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void updateBackground() {
|
||||||
|
mBackgroundNormal.setVisibility(hideBackground() ? INVISIBLE : VISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
||||||
|
|||||||
@@ -2890,6 +2890,12 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
|||||||
mShowNoBackground = false;
|
mShowNoBackground = false;
|
||||||
}
|
}
|
||||||
updateOutline();
|
updateOutline();
|
||||||
|
updateBackground();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected boolean hideBackground() {
|
||||||
|
return mShowNoBackground || super.hideBackground();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getPositionOfChild(ExpandableNotificationRow childRow) {
|
public int getPositionOfChild(ExpandableNotificationRow childRow) {
|
||||||
|
|||||||
Reference in New Issue
Block a user