Reduce jank when revoking notification permission
-Reorder fields so the appear/disappear more cleanly -Remove some divider lines- they don't animate with the content, for some reason -Remove an unused field -Hide the badge field (remaining field with divider) if there are no channels -Change style of 'Notifications are blocked' field to better match the other fields Test: revoke notification permission for apps with and without channels Test: BadgePreferenceControllerTest Fixes: 233962859 Change-Id: Ife894172bf91d838edf3b0546c5ee00e206a855f
This commit is contained in:
@@ -98,14 +98,13 @@ public class AppNotificationSettings extends NotificationSettings {
|
||||
mBackend));
|
||||
mControllers.add(new DndPreferenceController(context, mBackend));
|
||||
mControllers.add(new AppLinkPreferenceController(context));
|
||||
mControllers.add(new DescriptionPreferenceController(context));
|
||||
mControllers.add(new NotificationsOffPreferenceController(context));
|
||||
mControllers.add(new DeletedChannelsPreferenceController(context, mBackend));
|
||||
mControllers.add(new ChannelListPreferenceController(context, mBackend));
|
||||
mControllers.add(new AppConversationListPreferenceController(context, mBackend));
|
||||
mControllers.add(new InvalidConversationInfoPreferenceController(context, mBackend));
|
||||
mControllers.add(new InvalidConversationPreferenceController(context, mBackend));
|
||||
mControllers.add(new BubbleSummaryPreferenceController(context, mBackend));
|
||||
mControllers.add(new NotificationsOffPreferenceController(context));
|
||||
mControllers.add(new DeletedChannelsPreferenceController(context, mBackend));
|
||||
return new ArrayList<>(mControllers);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user