Applied code review changes.
This commit is contained in:
parent
fc46233baf
commit
a9af1dfdd2
3 changed files with 6 additions and 6 deletions
|
|
@ -180,7 +180,7 @@ public final class NotificationConstants {
|
|||
|
||||
if (compactSlot == Integer.MAX_VALUE) {
|
||||
// settings not yet populated, return default values
|
||||
return SLOT_COMPACT_DEFAULTS;
|
||||
return new ArrayList<>(SLOT_COMPACT_DEFAULTS);
|
||||
}
|
||||
|
||||
// a negative value (-1) is set when the user does not want a particular compact slot
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ public final class NotificationUtil {
|
|||
// build the compact slot indices array (need code to convert from Integer... because Java)
|
||||
final List<Integer> compactSlotList = NotificationConstants.getCompactSlotsFromPreferences(
|
||||
player.getContext(), player.getPrefs(), nonNothingSlotCount);
|
||||
final int[] compactSlots = compactSlotList.stream().mapToInt(i -> i).toArray();
|
||||
final int[] compactSlots = compactSlotList.stream().mapToInt(Integer::intValue).toArray();
|
||||
|
||||
builder.setStyle(new androidx.media.app.NotificationCompat.MediaStyle()
|
||||
.setMediaSession(player.getMediaSessionManager().getSessionToken())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue