Skip to content Skip to sidebar Skip to footer

How To Sort Notification Channels In System Settings On Android O

I have preset order of notification channels, that can be change. How to change order of notification channels? I try to sort by channel_id and channel_name, but it is not work.

Solution 1:

There was error in my solution. I try to add number of channel on start of channel id for sorting. So i had this:

56_server_channel_id
78_server_channel_id
155_server_channel_id
9998_default_app_channel_id
9999_default_app_channel_id

But because of missing leading zeros, it sorted not as i expected. So, right solution is:

0056_server_channel_id
0078_server_channel_id
0155_server_channel_id
9998_default_app_channel_id
9999_default_app_channel_id

Post a Comment for "How To Sort Notification Channels In System Settings On Android O"