Merge "Remove unused intent."
This commit is contained in:
committed by
Android (Google) Code Review
commit
65e33e7160
@@ -176,15 +176,6 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
||||
} else {
|
||||
groupCategory.setTitle(group.getName());
|
||||
groupCategory.setKey(group.getId());
|
||||
Bundle groupArgs = new Bundle();
|
||||
groupArgs.putInt(AppInfoBase.ARG_PACKAGE_UID, mUid);
|
||||
groupArgs.putString(AppInfoBase.ARG_PACKAGE_NAME, mPkg);
|
||||
groupArgs.putString(Settings.EXTRA_CHANNEL_GROUP_ID, group.getId());
|
||||
Intent channelIntent = Utils.onBuildStartFragmentIntent(getActivity(),
|
||||
ChannelGroupNotificationSettings.class.getName(),
|
||||
groupArgs, null, R.string.notification_group_title,
|
||||
null, false, getMetricsCategory());
|
||||
groupCategory.setIntent(channelIntent);
|
||||
populateGroupToggle(groupCategory, group);
|
||||
}
|
||||
|
||||
|
@@ -168,14 +168,7 @@ abstract public class NotificationSettingsBase extends DashboardFragment {
|
||||
mChannel = (args != null && args.containsKey(Settings.EXTRA_CHANNEL_ID)) ?
|
||||
mBackend.getChannel(mPkg, mUid, args.getString(Settings.EXTRA_CHANNEL_ID)) : null;
|
||||
|
||||
NotificationChannelGroup group =
|
||||
(args != null && args.containsKey(Settings.EXTRA_CHANNEL_GROUP_ID))
|
||||
? mBackend.getGroupWithChannels(mPkg, mUid,
|
||||
args.getString(Settings.EXTRA_CHANNEL_GROUP_ID))
|
||||
: null;
|
||||
if (group != null) {
|
||||
mChannelGroup = new NotificationChannelGroupWrapper(group);
|
||||
}
|
||||
NotificationChannelGroup group = null;
|
||||
|
||||
mSuspendedAppsAdmin = RestrictedLockUtils.checkIfApplicationIsSuspended(
|
||||
mContext, mPkg, mUserId);
|
||||
|
Reference in New Issue
Block a user