Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f530e00f authored by Alexander Martinz's avatar Alexander Martinz Committed by Michael Bestas
Browse files

MusicUtils: handle exceptions and clean up



Change-Id: Iab3d71742ef16ac056ea6904b9c0a2454847b53b
Signed-off-by: Alexander Martinz's avatarAlexander Martinz <amartinz@shiftphones.com>
parent 15f97bbb
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -323,9 +323,7 @@ public class HomeActivity extends SlidingPanelActivity implements
                MusicUtils.removeFromCache(this, mKey);
                final Uri selectedImage = data.getData();

                new Thread(new Runnable() {
                    @Override
                    public void run() {
                new Thread(() -> {
                    Bitmap bitmap = ImageFetcher.decodeSampledBitmapFromUri(getContentResolver(),
                            selectedImage);

@@ -333,7 +331,6 @@ public class HomeActivity extends SlidingPanelActivity implements
                    imageFetcher.addBitmapToCache(mKey, bitmap);

                    MusicUtils.refresh();
                    }
                }).start();
            }
        }
+339 −331

File changed.

Preview size limit exceeded, changes collapsed.