use new notification style for Android N and above

This commit is contained in:
Kristupas Savickas 2020-06-05 11:53:28 +03:00
commit 96b80404ce
No known key found for this signature in database
GPG key ID: 7B40A89F987DF452

View file

@ -2,6 +2,7 @@ package com.dkanada.gramophone.util;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
import android.preference.PreferenceManager;
import androidx.annotation.StyleRes;
@ -146,7 +147,8 @@ public final class PreferenceUtil {
}
public final boolean getClassicNotification() {
return mPreferences.getBoolean(CLASSIC_NOTIFICATION, true);
return mPreferences.getBoolean(CLASSIC_NOTIFICATION,
Build.VERSION.SDK_INT <= Build.VERSION_CODES.O);
}
public void setClassicNotification(final boolean value) {