Loading packages/SystemUI/src/com/android/systemui/bubbles/Bubble.java +1 −1 Original line number Diff line number Diff line Loading @@ -199,7 +199,7 @@ class Bubble { mExpandedView = (BubbleExpandedView) inflater.inflate( R.layout.bubble_expanded_view, stackView, false /* attachToRoot */); mExpandedView.setBubble(this, stackView, mAppName); mExpandedView.setBubble(this, stackView); mInflated = true; } Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleExpandedView.java +3 −24 Original line number Diff line number Diff line Loading @@ -31,15 +31,12 @@ import android.app.PendingIntent; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.Insets; import android.graphics.Point; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.graphics.drawable.ShapeDrawable; import android.os.RemoteException; import android.service.notification.StatusBarNotification; Loading Loading @@ -102,9 +99,7 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList private int mExpandedViewTouchSlop; private Bubble mBubble; private PackageManager mPm; private String mAppName; private Drawable mAppIcon; private BubbleController mBubbleController = Dependency.get(BubbleController.class); private WindowManager mWindowManager; Loading Loading @@ -212,7 +207,6 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList public BubbleExpandedView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { super(context, attrs, defStyleAttr, defStyleRes); mPm = context.getPackageManager(); mDisplaySize = new Point(); mWindowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); // Get the real size -- this includes screen decorations (notches, statusbar, navbar). Loading Loading @@ -350,29 +344,14 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList /** * Sets the bubble used to populate this view. */ public void setBubble(Bubble bubble, BubbleStackView stackView, String appName) { public void setBubble(Bubble bubble, BubbleStackView stackView) { if (DEBUG_BUBBLE_EXPANDED_VIEW) { Log.d(TAG, "setBubble: bubble=" + (bubble != null ? bubble.getKey() : "null")); } mStackView = stackView; mBubble = bubble; mAppName = appName; mAppName = bubble.getAppName(); try { ApplicationInfo info = mPm.getApplicationInfo( bubble.getPackageName(), PackageManager.MATCH_UNINSTALLED_PACKAGES | PackageManager.MATCH_DISABLED_COMPONENTS | PackageManager.MATCH_DIRECT_BOOT_UNAWARE | PackageManager.MATCH_DIRECT_BOOT_AWARE); mAppIcon = mPm.getApplicationIcon(info); } catch (PackageManager.NameNotFoundException e) { // Do nothing. } if (mAppIcon == null) { mAppIcon = mPm.getDefaultActivityIcon(); } applyThemeAttrs(); showSettingsIcon(); updateExpandedView(); Loading Loading
packages/SystemUI/src/com/android/systemui/bubbles/Bubble.java +1 −1 Original line number Diff line number Diff line Loading @@ -199,7 +199,7 @@ class Bubble { mExpandedView = (BubbleExpandedView) inflater.inflate( R.layout.bubble_expanded_view, stackView, false /* attachToRoot */); mExpandedView.setBubble(this, stackView, mAppName); mExpandedView.setBubble(this, stackView); mInflated = true; } Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleExpandedView.java +3 −24 Original line number Diff line number Diff line Loading @@ -31,15 +31,12 @@ import android.app.PendingIntent; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.Insets; import android.graphics.Point; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.graphics.drawable.ShapeDrawable; import android.os.RemoteException; import android.service.notification.StatusBarNotification; Loading Loading @@ -102,9 +99,7 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList private int mExpandedViewTouchSlop; private Bubble mBubble; private PackageManager mPm; private String mAppName; private Drawable mAppIcon; private BubbleController mBubbleController = Dependency.get(BubbleController.class); private WindowManager mWindowManager; Loading Loading @@ -212,7 +207,6 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList public BubbleExpandedView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { super(context, attrs, defStyleAttr, defStyleRes); mPm = context.getPackageManager(); mDisplaySize = new Point(); mWindowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); // Get the real size -- this includes screen decorations (notches, statusbar, navbar). Loading Loading @@ -350,29 +344,14 @@ public class BubbleExpandedView extends LinearLayout implements View.OnClickList /** * Sets the bubble used to populate this view. */ public void setBubble(Bubble bubble, BubbleStackView stackView, String appName) { public void setBubble(Bubble bubble, BubbleStackView stackView) { if (DEBUG_BUBBLE_EXPANDED_VIEW) { Log.d(TAG, "setBubble: bubble=" + (bubble != null ? bubble.getKey() : "null")); } mStackView = stackView; mBubble = bubble; mAppName = appName; mAppName = bubble.getAppName(); try { ApplicationInfo info = mPm.getApplicationInfo( bubble.getPackageName(), PackageManager.MATCH_UNINSTALLED_PACKAGES | PackageManager.MATCH_DISABLED_COMPONENTS | PackageManager.MATCH_DIRECT_BOOT_UNAWARE | PackageManager.MATCH_DIRECT_BOOT_AWARE); mAppIcon = mPm.getApplicationIcon(info); } catch (PackageManager.NameNotFoundException e) { // Do nothing. } if (mAppIcon == null) { mAppIcon = mPm.getDefaultActivityIcon(); } applyThemeAttrs(); showSettingsIcon(); updateExpandedView(); Loading