Loading packages/SystemUI/src/com/android/systemui/people/PeopleProvider.java +1 −1 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ public class PeopleProvider extends ContentProvider { : Dependency.get(NotificationEntryManager.class); RemoteViews view = PeopleSpaceUtils.getPreview(getContext(), mPeopleManager, mLauncherApps, mNotificationEntryManager, shortcutId, userHandle, packageName); mNotificationEntryManager, shortcutId, userHandle, packageName, extras); if (view == null) { if (DEBUG) Log.d(TAG, "No preview available for shortcutId: " + shortcutId); return null; Loading packages/SystemUI/src/com/android/systemui/people/PeopleSpaceUtils.java +2 −3 Original line number Diff line number Diff line Loading @@ -529,7 +529,7 @@ public class PeopleSpaceUtils { */ public static RemoteViews getPreview(Context context, IPeopleManager peopleManager, LauncherApps launcherApps, NotificationEntryManager notificationEntryManager, String shortcutId, UserHandle userHandle, String packageName) { String shortcutId, UserHandle userHandle, String packageName, Bundle options) { peopleManager = (peopleManager != null) ? peopleManager : IPeopleManager.Stub.asInterface( ServiceManager.getService(Context.PEOPLE_SERVICE)); launcherApps = (launcherApps != null) ? launcherApps Loading @@ -556,8 +556,7 @@ public class PeopleSpaceUtils { context, tile, notificationEntryManager); if (DEBUG) Log.i(TAG, "Returning tile preview for shortcutId: " + shortcutId); Bundle bundle = new Bundle(); return new PeopleTileViewHelper(context, augmentedTile, 0, bundle).getViews(); return new PeopleTileViewHelper(context, augmentedTile, 0, options).getViews(); } /** Returns the userId associated with a {@link PeopleSpaceTile} */ Loading packages/SystemUI/src/com/android/systemui/people/widget/PeopleSpaceWidgetManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -777,12 +777,12 @@ public class PeopleSpaceWidgetManager { * Builds a request to pin a People Tile app widget, with a preview and storing necessary * information as the callback. */ public boolean requestPinAppWidget(ShortcutInfo shortcutInfo) { public boolean requestPinAppWidget(ShortcutInfo shortcutInfo, Bundle options) { if (DEBUG) Log.d(TAG, "Requesting pin widget, shortcutId: " + shortcutInfo.getId()); RemoteViews widgetPreview = PeopleSpaceUtils.getPreview(mContext, mIPeopleManager, mLauncherApps, mNotificationEntryManager, shortcutInfo.getId(), shortcutInfo.getUserHandle(), shortcutInfo.getPackage()); shortcutInfo.getUserHandle(), shortcutInfo.getPackage(), options); if (widgetPreview == null) { Log.w(TAG, "Skipping pinning widget: no tile for shortcutId: " + shortcutInfo.getId()); return false; Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationConversationInfo.java +2 −1 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ import android.content.pm.ShortcutInfo; import android.content.pm.ShortcutManager; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Handler; import android.os.RemoteException; import android.os.UserHandle; Loading Loading @@ -181,7 +182,7 @@ public class NotificationConversationInfo extends LinearLayout implements showPriorityOnboarding(); } else if (mSelectedAction == ACTION_FAVORITE && getPriority() != mSelectedAction) { mShadeController.animateCollapsePanels(); mPeopleSpaceWidgetManager.requestPinAppWidget(mShortcutInfo); mPeopleSpaceWidgetManager.requestPinAppWidget(mShortcutInfo, new Bundle()); } mGutsContainer.closeControls(v, true); }; Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/row/PriorityOnboardingDialogController.kt +2 −1 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import android.graphics.PixelFormat import android.graphics.drawable.ColorDrawable import android.graphics.drawable.Drawable import android.graphics.drawable.GradientDrawable import android.os.Bundle import android.text.SpannableStringBuilder import android.text.style.BulletSpan import android.view.Gravity Loading Loading @@ -86,7 +87,7 @@ class PriorityOnboardingDialogController @Inject constructor( Prefs.putBoolean(context, Prefs.Key.HAS_SEEN_PRIORITY_ONBOARDING_IN_S, true) dialog.dismiss() shadeController.animateCollapsePanels() peopleSpaceWidgetManager.requestPinAppWidget(shortcutInfo) peopleSpaceWidgetManager.requestPinAppWidget(shortcutInfo, Bundle()) } private fun settings() { Loading Loading
packages/SystemUI/src/com/android/systemui/people/PeopleProvider.java +1 −1 Original line number Diff line number Diff line Loading @@ -93,7 +93,7 @@ public class PeopleProvider extends ContentProvider { : Dependency.get(NotificationEntryManager.class); RemoteViews view = PeopleSpaceUtils.getPreview(getContext(), mPeopleManager, mLauncherApps, mNotificationEntryManager, shortcutId, userHandle, packageName); mNotificationEntryManager, shortcutId, userHandle, packageName, extras); if (view == null) { if (DEBUG) Log.d(TAG, "No preview available for shortcutId: " + shortcutId); return null; Loading
packages/SystemUI/src/com/android/systemui/people/PeopleSpaceUtils.java +2 −3 Original line number Diff line number Diff line Loading @@ -529,7 +529,7 @@ public class PeopleSpaceUtils { */ public static RemoteViews getPreview(Context context, IPeopleManager peopleManager, LauncherApps launcherApps, NotificationEntryManager notificationEntryManager, String shortcutId, UserHandle userHandle, String packageName) { String shortcutId, UserHandle userHandle, String packageName, Bundle options) { peopleManager = (peopleManager != null) ? peopleManager : IPeopleManager.Stub.asInterface( ServiceManager.getService(Context.PEOPLE_SERVICE)); launcherApps = (launcherApps != null) ? launcherApps Loading @@ -556,8 +556,7 @@ public class PeopleSpaceUtils { context, tile, notificationEntryManager); if (DEBUG) Log.i(TAG, "Returning tile preview for shortcutId: " + shortcutId); Bundle bundle = new Bundle(); return new PeopleTileViewHelper(context, augmentedTile, 0, bundle).getViews(); return new PeopleTileViewHelper(context, augmentedTile, 0, options).getViews(); } /** Returns the userId associated with a {@link PeopleSpaceTile} */ Loading
packages/SystemUI/src/com/android/systemui/people/widget/PeopleSpaceWidgetManager.java +2 −2 Original line number Diff line number Diff line Loading @@ -777,12 +777,12 @@ public class PeopleSpaceWidgetManager { * Builds a request to pin a People Tile app widget, with a preview and storing necessary * information as the callback. */ public boolean requestPinAppWidget(ShortcutInfo shortcutInfo) { public boolean requestPinAppWidget(ShortcutInfo shortcutInfo, Bundle options) { if (DEBUG) Log.d(TAG, "Requesting pin widget, shortcutId: " + shortcutInfo.getId()); RemoteViews widgetPreview = PeopleSpaceUtils.getPreview(mContext, mIPeopleManager, mLauncherApps, mNotificationEntryManager, shortcutInfo.getId(), shortcutInfo.getUserHandle(), shortcutInfo.getPackage()); shortcutInfo.getUserHandle(), shortcutInfo.getPackage(), options); if (widgetPreview == null) { Log.w(TAG, "Skipping pinning widget: no tile for shortcutId: " + shortcutInfo.getId()); return false; Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationConversationInfo.java +2 −1 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ import android.content.pm.ShortcutInfo; import android.content.pm.ShortcutManager; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Handler; import android.os.RemoteException; import android.os.UserHandle; Loading Loading @@ -181,7 +182,7 @@ public class NotificationConversationInfo extends LinearLayout implements showPriorityOnboarding(); } else if (mSelectedAction == ACTION_FAVORITE && getPriority() != mSelectedAction) { mShadeController.animateCollapsePanels(); mPeopleSpaceWidgetManager.requestPinAppWidget(mShortcutInfo); mPeopleSpaceWidgetManager.requestPinAppWidget(mShortcutInfo, new Bundle()); } mGutsContainer.closeControls(v, true); }; Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/row/PriorityOnboardingDialogController.kt +2 −1 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import android.graphics.PixelFormat import android.graphics.drawable.ColorDrawable import android.graphics.drawable.Drawable import android.graphics.drawable.GradientDrawable import android.os.Bundle import android.text.SpannableStringBuilder import android.text.style.BulletSpan import android.view.Gravity Loading Loading @@ -86,7 +87,7 @@ class PriorityOnboardingDialogController @Inject constructor( Prefs.putBoolean(context, Prefs.Key.HAS_SEEN_PRIORITY_ONBOARDING_IN_S, true) dialog.dismiss() shadeController.animateCollapsePanels() peopleSpaceWidgetManager.requestPinAppWidget(shortcutInfo) peopleSpaceWidgetManager.requestPinAppWidget(shortcutInfo, Bundle()) } private fun settings() { Loading