Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/row/PromotedNotificationInfo.java +6 −1 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ public class PromotedNotificationInfo extends NotificationInfo { private static final String TAG = "PromotedNotifInfoGuts"; private INotificationManager mNotificationManager; private PackageDemotionInteractor mPackageDemotionInteractor; private UiEventLogger mUiEventLogger; public PromotedNotificationInfo(Context context, AttributeSet attrs) { super(context, attrs); Loading Loading @@ -90,6 +91,8 @@ public class PromotedNotificationInfo extends NotificationInfo { mPackageDemotionInteractor = packageDemotionInteractor; mUiEventLogger = uiEventLogger; bindDemote(sbn, pkg); // Override the visibility of elements we don't want for the promoted notification Loading Loading @@ -134,10 +137,12 @@ public class PromotedNotificationInfo extends NotificationInfo { mNotificationManager.setCanBePromoted(packageName, sbn.getUid(), false, true); mPackageDemotionInteractor.onPackageDemoted(packageName, sbn.getUid()); mGutsContainer.closeControls(v, true); mUiEventLogger.logWithInstanceId( NotificationControlsEvent.NOTIFICATION_DEMOTION_COMMIT, sbn.getUid(), packageName, sbn.getInstanceId()); } catch (RemoteException e) { Log.e(TAG, "Couldn't revoke live update permission", e); } }); } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/row/PromotedNotificationInfo.java +6 −1 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ public class PromotedNotificationInfo extends NotificationInfo { private static final String TAG = "PromotedNotifInfoGuts"; private INotificationManager mNotificationManager; private PackageDemotionInteractor mPackageDemotionInteractor; private UiEventLogger mUiEventLogger; public PromotedNotificationInfo(Context context, AttributeSet attrs) { super(context, attrs); Loading Loading @@ -90,6 +91,8 @@ public class PromotedNotificationInfo extends NotificationInfo { mPackageDemotionInteractor = packageDemotionInteractor; mUiEventLogger = uiEventLogger; bindDemote(sbn, pkg); // Override the visibility of elements we don't want for the promoted notification Loading Loading @@ -134,10 +137,12 @@ public class PromotedNotificationInfo extends NotificationInfo { mNotificationManager.setCanBePromoted(packageName, sbn.getUid(), false, true); mPackageDemotionInteractor.onPackageDemoted(packageName, sbn.getUid()); mGutsContainer.closeControls(v, true); mUiEventLogger.logWithInstanceId( NotificationControlsEvent.NOTIFICATION_DEMOTION_COMMIT, sbn.getUid(), packageName, sbn.getInstanceId()); } catch (RemoteException e) { Log.e(TAG, "Couldn't revoke live update permission", e); } }); } }