mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Fallback to WallpaperManager#getDrawable() if getWallpaperFile() is null
Bug: 34521181 Change-Id: Ifc5f7cd9a11ff1f66acaadaea494ba4a0d142c3c
This commit is contained in:
@@ -98,7 +98,7 @@ public class ColorExtractionService extends IntentService {
|
||||
if (bitmap != null) {
|
||||
return Palette.from(bitmap).clearFilters().generate();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | NullPointerException e) {
|
||||
Log.e(TAG, "Fetching partial bitmap failed, trying old method", e);
|
||||
}
|
||||
}
|
||||
@@ -129,7 +129,7 @@ public class ColorExtractionService extends IntentService {
|
||||
if (bitmap != null) {
|
||||
return Palette.from(bitmap).clearFilters().generate();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | NullPointerException e) {
|
||||
Log.e(TAG, "Fetching partial bitmap failed, trying old method", e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user