Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/Bubble.java +2 −1 Original line number Diff line number Diff line Loading @@ -349,7 +349,8 @@ public class Bubble implements BubbleViewProvider { getPackageName(), getTitle(), getAppName(), isImportantConversation()); isImportantConversation(), !isAppLaunchIntent()); } @Override Loading libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/BubbleInfo.java +9 −1 Original line number Diff line number Diff line Loading @@ -48,10 +48,11 @@ public class BubbleInfo implements Parcelable { @Nullable private String mAppName; private boolean mIsImportantConversation; private boolean mShowAppBadge; public BubbleInfo(String key, int flags, @Nullable String shortcutId, @Nullable Icon icon, int userId, String packageName, @Nullable String title, @Nullable String appName, boolean isImportantConversation) { boolean isImportantConversation, boolean showAppBadge) { mKey = key; mFlags = flags; mShortcutId = shortcutId; Loading @@ -61,6 +62,7 @@ public class BubbleInfo implements Parcelable { mTitle = title; mAppName = appName; mIsImportantConversation = isImportantConversation; mShowAppBadge = showAppBadge; } private BubbleInfo(Parcel source) { Loading @@ -73,6 +75,7 @@ public class BubbleInfo implements Parcelable { mTitle = source.readString(); mAppName = source.readString(); mIsImportantConversation = source.readBoolean(); mShowAppBadge = source.readBoolean(); } public String getKey() { Loading Loading @@ -115,6 +118,10 @@ public class BubbleInfo implements Parcelable { return mIsImportantConversation; } public boolean showAppBadge() { return mShowAppBadge; } /** * Whether this bubble is currently being hidden from the stack. */ Loading Loading @@ -172,6 +179,7 @@ public class BubbleInfo implements Parcelable { parcel.writeString(mTitle); parcel.writeString(mAppName); parcel.writeBoolean(mIsImportantConversation); parcel.writeBoolean(mShowAppBadge); } @NonNull Loading libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/bubbles/BubbleInfoTest.kt +1 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ class BubbleInfoTest : ShellTestCase() { "com.some.package", "title", "Some app", true, true ) val parcel = Parcel.obtain() Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/Bubble.java +2 −1 Original line number Diff line number Diff line Loading @@ -349,7 +349,8 @@ public class Bubble implements BubbleViewProvider { getPackageName(), getTitle(), getAppName(), isImportantConversation()); isImportantConversation(), !isAppLaunchIntent()); } @Override Loading
libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/BubbleInfo.java +9 −1 Original line number Diff line number Diff line Loading @@ -48,10 +48,11 @@ public class BubbleInfo implements Parcelable { @Nullable private String mAppName; private boolean mIsImportantConversation; private boolean mShowAppBadge; public BubbleInfo(String key, int flags, @Nullable String shortcutId, @Nullable Icon icon, int userId, String packageName, @Nullable String title, @Nullable String appName, boolean isImportantConversation) { boolean isImportantConversation, boolean showAppBadge) { mKey = key; mFlags = flags; mShortcutId = shortcutId; Loading @@ -61,6 +62,7 @@ public class BubbleInfo implements Parcelable { mTitle = title; mAppName = appName; mIsImportantConversation = isImportantConversation; mShowAppBadge = showAppBadge; } private BubbleInfo(Parcel source) { Loading @@ -73,6 +75,7 @@ public class BubbleInfo implements Parcelable { mTitle = source.readString(); mAppName = source.readString(); mIsImportantConversation = source.readBoolean(); mShowAppBadge = source.readBoolean(); } public String getKey() { Loading Loading @@ -115,6 +118,10 @@ public class BubbleInfo implements Parcelable { return mIsImportantConversation; } public boolean showAppBadge() { return mShowAppBadge; } /** * Whether this bubble is currently being hidden from the stack. */ Loading Loading @@ -172,6 +179,7 @@ public class BubbleInfo implements Parcelable { parcel.writeString(mTitle); parcel.writeString(mAppName); parcel.writeBoolean(mIsImportantConversation); parcel.writeBoolean(mShowAppBadge); } @NonNull Loading
libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/bubbles/BubbleInfoTest.kt +1 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ class BubbleInfoTest : ShellTestCase() { "com.some.package", "title", "Some app", true, true ) val parcel = Parcel.obtain() Loading