Importance preference updates
- Use show on lockscreen setting - Match design to notification shade guts Test: robotests Bug: 131290247 Bug: 128445911 Change-Id: I645b35191c8f22e751c264fd8ca13560f50b7582
This commit is contained in:
@@ -22,6 +22,7 @@ import static android.app.NotificationManager.IMPORTANCE_DEFAULT;
|
||||
import android.app.NotificationChannel;
|
||||
import android.content.Context;
|
||||
import android.media.RingtoneManager;
|
||||
import android.provider.Settings;
|
||||
|
||||
import com.android.settings.core.PreferenceControllerMixin;
|
||||
|
||||
@@ -64,7 +65,8 @@ public class ImportancePreferenceController extends NotificationPreferenceContro
|
||||
pref.setConfigurable(!mChannel.isImportanceLockedByOEM());
|
||||
pref.setImportance(mChannel.getImportance());
|
||||
pref.setDisplayInStatusBar(mBackend.showSilentInStatusBar(mContext.getPackageName()));
|
||||
// TODO: b/128445911 pass along lock screen setting
|
||||
pref.setDisplayOnLockscreen(Settings.Secure.getInt(mContext.getContentResolver(),
|
||||
Settings.Secure.LOCK_SCREEN_SHOW_SILENT_NOTIFICATIONS, 0) == 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user