Commit 9d864857 authored by Thomas's avatar Thomas
Browse files

Fix issue #490 - Remove grouped notifications for Android 5 & 6

parent 9c728f24
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1610,9 +1610,12 @@ public class Helper {
                .setGroup(account.mastodon_account != null ? account.mastodon_account.username + "@" + account.instance : "" + "@" + account.instance)
                .setGroupSummary(true)
                .build();

        notificationManager.notify(notificationId++, notificationBuilder.build());
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1) {
            notificationManager.notify(0, summaryNotification);
        }
    }

    public static void transfertIfExist(Context context) {
        File dbFile = context.getDatabasePath(OLD_DB_NAME);