Skip to content

Commit 2278c74

Browse files
committed
Signed-off-by: alperozturk <[email protected]>
1 parent ed801c5 commit 2278c74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/com/owncloud/android/utils/BitmapUtils.java

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public static Bitmap addColorFilter(Bitmap originalBitmap, int filterColor, int
7676
return resultBitmap;
7777
}
7878

79+
@Nullable
7980
@RequiresApi(Build.VERSION_CODES.P)
8081
private static Bitmap decodeSampledBitmapViaImageDecoder(@NonNull File file, int reqWidth, int reqHeight) {
8182
try {
@@ -106,6 +107,7 @@ public void onHeaderDecoded(@NonNull ImageDecoder decoder, @NonNull ImageDecoder
106107
* @param reqHeight Height of the surface where the Bitmap will be drawn on, in pixels.
107108
* @return decoded bitmap
108109
*/
110+
@Nullable
109111
public static Bitmap decodeSampledBitmapFromFile(String srcPath, int reqWidth, int reqHeight) {
110112
final var file = new File(srcPath);
111113
if (!file.exists()) {

0 commit comments

Comments
 (0)