From ed15d53919fc6b9d7945230611f48b25f21caad3 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 1 Oct 2011 20:07:57 +0000 Subject: [PATCH] Android: show Album Art in notification area. Instead of showing the small Rockbox clef logo show the Album Art if available. If no Album Art is available show the clef logo about the same size as the Album Art. - The notification area process doesn't have permissions to access the SD card. Therefore the image needs to be read and set as Bitmap instead of simply setting the Uri to it as done in the widget. - Passing a full sized image to the Notification Manager can cause issues (Rockbox UI hanging, notification not updating anymore, force closes). Scale down the image to the same size the launcher icon has to avoid this. This also makes the logo shown when no Album Art is available have the same size which looks nicer than having different sizes. Album Art images are allowed to be wider since there is enough room. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30629 a1c6a512-1295-4272-9138-f99709370657 --- android/res/layout/statusbar.xml | 17 +++++----- .../rockbox/Helper/RunForegroundManager.java | 31 +++++++++++++++++++ 2 files changed, 40 insertions(+), 8 deletions(-) diff --git a/android/res/layout/statusbar.xml b/android/res/layout/statusbar.xml index c795008225..cf49264eba 100644 --- a/android/res/layout/statusbar.xml +++ b/android/res/layout/statusbar.xml @@ -8,19 +8,20 @@ android:paddingBottom="0dp" android:orientation="horizontal"> + + - - - + android:orientation="horizontal">