Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleExpandedView.java +21 −9 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ import android.util.AttributeSet; import android.util.Log; import android.util.StatsLog; import android.view.View; import android.view.ViewGroup; import android.view.WindowInsets; import android.widget.FrameLayout; import android.widget.ImageButton; Loading Loading @@ -316,8 +317,25 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList /** * Lets activity view know it should be shown / populated. */ public void populateActivityView() { public void populateExpandedView() { if (usingActivityView()) { mActivityView.setCallback(mStateCallback); } else { // We're using notification template ViewGroup parent = (ViewGroup) mNotifRow.getParent(); if (parent == this) { // Already added return; } else if (parent != null) { // Still in the shade... remove it parent.removeView(mNotifRow); } if (mShowOnTop) { addView(mNotifRow); } else { addView(mNotifRow, mUseFooter ? 0 : 1); } } } /** Loading Loading @@ -376,14 +394,8 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList } else { // Hide activity view if we had it previously mActivityView.setVisibility(GONE); // Use notification view mNotifRow = mEntry.getRow(); if (mShowOnTop) { addView(mNotifRow); } else { addView(mNotifRow, mUseFooter ? 0 : 1); } } updateView(); } Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +5 −1 Original line number Diff line number Diff line Loading @@ -807,7 +807,7 @@ public class BubbleStackView extends FrameLayout { mExpandedViewContainer.removeAllViews(); if (mExpandedBubble != null && mIsExpanded) { mExpandedViewContainer.addView(mExpandedBubble.expandedView); mExpandedBubble.expandedView.populateActivityView(); mExpandedBubble.expandedView.populateExpandedView(); mExpandedViewContainer.setVisibility(mIsExpanded ? VISIBLE : GONE); } } Loading @@ -817,8 +817,12 @@ public class BubbleStackView extends FrameLayout { mExpandedViewContainer.setVisibility(mIsExpanded ? VISIBLE : GONE); if (mIsExpanded) { // First update the view so that it calculates a new height (ensuring the y position // calculation is correct) mExpandedBubble.expandedView.updateView(); final float y = getYPositionForExpandedView(); mExpandedViewContainer.setTranslationY(y); // Then update the view so that ActivityView knows we translated mExpandedBubble.expandedView.updateView(); } Loading Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleExpandedView.java +21 −9 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ import android.util.AttributeSet; import android.util.Log; import android.util.StatsLog; import android.view.View; import android.view.ViewGroup; import android.view.WindowInsets; import android.widget.FrameLayout; import android.widget.ImageButton; Loading Loading @@ -316,8 +317,25 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList /** * Lets activity view know it should be shown / populated. */ public void populateActivityView() { public void populateExpandedView() { if (usingActivityView()) { mActivityView.setCallback(mStateCallback); } else { // We're using notification template ViewGroup parent = (ViewGroup) mNotifRow.getParent(); if (parent == this) { // Already added return; } else if (parent != null) { // Still in the shade... remove it parent.removeView(mNotifRow); } if (mShowOnTop) { addView(mNotifRow); } else { addView(mNotifRow, mUseFooter ? 0 : 1); } } } /** Loading Loading @@ -376,14 +394,8 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList } else { // Hide activity view if we had it previously mActivityView.setVisibility(GONE); // Use notification view mNotifRow = mEntry.getRow(); if (mShowOnTop) { addView(mNotifRow); } else { addView(mNotifRow, mUseFooter ? 0 : 1); } } updateView(); } Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleStackView.java +5 −1 Original line number Diff line number Diff line Loading @@ -807,7 +807,7 @@ public class BubbleStackView extends FrameLayout { mExpandedViewContainer.removeAllViews(); if (mExpandedBubble != null && mIsExpanded) { mExpandedViewContainer.addView(mExpandedBubble.expandedView); mExpandedBubble.expandedView.populateActivityView(); mExpandedBubble.expandedView.populateExpandedView(); mExpandedViewContainer.setVisibility(mIsExpanded ? VISIBLE : GONE); } } Loading @@ -817,8 +817,12 @@ public class BubbleStackView extends FrameLayout { mExpandedViewContainer.setVisibility(mIsExpanded ? VISIBLE : GONE); if (mIsExpanded) { // First update the view so that it calculates a new height (ensuring the y position // calculation is correct) mExpandedBubble.expandedView.updateView(); final float y = getYPositionForExpandedView(); mExpandedViewContainer.setTranslationY(y); // Then update the view so that ActivityView knows we translated mExpandedBubble.expandedView.updateView(); } Loading