Skip to content
Snippets Groups Projects
Commit 2d318a59 authored by Sal Savage's avatar Sal Savage Committed by Gerrit Code Review
Browse files

Merge "Update queue title on locale change" into main

parents af3574c8 4de128dd
No related branches found
No related tags found
No related merge requests found
......@@ -89,12 +89,17 @@ public class BluetoothMediaBrowserService extends MediaBrowserServiceCompat {
if (DBG) Log.d(TAG, "Locale has updated");
if (sBluetoothMediaBrowserService == null) return;
MediaSessionCompat session = sBluetoothMediaBrowserService.getSession();
// Update playback state error message under new locale, if applicable
MediaControllerCompat controller = session.getController();
PlaybackStateCompat playbackState =
controller == null ? null : controller.getPlaybackState();
if (playbackState != null && playbackState.getErrorMessage() != null) {
setErrorPlaybackState();
}
// Update queue title under new locale
session.setQueueTitle(getString(R.string.bluetooth_a2dp_sink_queue_name));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment