diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-10-14 17:01:14 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-10-14 17:01:14 -0700 |
commit | 374b737332e44b59e70892578881c59ef33d9e8d (patch) | |
tree | eab6b17ccff3a5f3920bb396e23511f702709e1a /app/src/main/java | |
parent | b2645d6de60eec05c4435681655b6647c639d13a (diff) | |
download | dsub-374b737332e44b59e70892578881c59ef33d9e8d.tar.gz dsub-374b737332e44b59e70892578881c59ef33d9e8d.tar.bz2 dsub-374b737332e44b59e70892578881c59ef33d9e8d.zip |
Make wear notification controls match theme color
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java b/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java index b6a38199..7a54983d 100644 --- a/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java +++ b/app/src/main/java/github/daneren2005/dsub/util/compat/RemoteControlClientLP.java @@ -57,6 +57,7 @@ public class RemoteControlClientLP extends RemoteControlClientBase { private static final String SHOW_ON_WEAR = "android.support.wearable.media.extra.CUSTOM_ACTION_SHOW_ON_WEAR"; private static final String WEAR_RESERVE_SKIP_TO_NEXT = "android.support.wearable.media.extra.RESERVE_SLOT_SKIP_TO_NEXT"; private static final String WEAR_RESERVE_SKIP_TO_PREVIOUS = "android.support.wearable.media.extra.RESERVE_SLOT_SKIP_TO_PREVIOUS"; + private static final String WEAR_BACKGROUND_THEME = "android.support.wearable.media.extra.BACKGROUND_COLOR_FROM_THEME"; // These constants don't seem to exist anywhere in the SDK. Grabbed from Google's sample media player app private static final String AUTO_RESERVE_SKIP_TO_NEXT = "com.google.android.gms.car.media.ALWAYS_RESERVE_SPACE_FOR.ACTION_SKIP_TO_NEXT"; private static final String AUTO_RESERVE_SKIP_TO_PREVIOUS = "com.google.android.gms.car.media.ALWAYS_RESERVE_SPACE_FOR.ACTION_SKIP_TO_PREVIOUS"; @@ -93,6 +94,7 @@ public class RemoteControlClientLP extends RemoteControlClientBase { mediaSession.setActive(true); Bundle sessionExtras = new Bundle(); + sessionExtras.putBoolean(WEAR_BACKGROUND_THEME, true); sessionExtras.putBoolean(WEAR_RESERVE_SKIP_TO_PREVIOUS, true); sessionExtras.putBoolean(WEAR_RESERVE_SKIP_TO_NEXT, true); sessionExtras.putBoolean(AUTO_RESERVE_SKIP_TO_PREVIOUS, true); |