Fallback to WallpaperManager#getDrawable() if getWallpaperFile() is null

Bug: 34521181
Change-Id: Ifc5f7cd9a11ff1f66acaadaea494ba4a0d142c3c
This commit is contained in:
Tony Wickham
2017-02-15 14:53:08 -08:00
parent a59402f98c
commit 0891d1fd9b

View File

@@ -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);
}
}