Commit 94b1fb9 1 parent 3ecbdae commit 94b1fb9 Copy full SHA for 94b1fb9
File tree 1 file changed +5
-0
lines changed
app/src/main/java/app/grapheneos/camera/capturer
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import android.content.Context
7
7
import android.content.pm.PackageManager.PERMISSION_GRANTED
8
8
import android.graphics.Bitmap
9
9
import android.graphics.drawable.GradientDrawable
10
+ import android.graphics.drawable.LayerDrawable
10
11
import android.graphics.drawable.StateListDrawable
11
12
import android.location.Location
12
13
import android.media.MediaMetadataRetriever
@@ -278,6 +279,8 @@ class VideoCapturer(private val mActivity: MainActivity) {
278
279
279
280
val gd: GradientDrawable = if (drawable is StateListDrawable ) {
280
281
drawable.current as GradientDrawable
282
+ } else if (drawable is LayerDrawable ) {
283
+ drawable.current as GradientDrawable
281
284
} else {
282
285
drawable as GradientDrawable
283
286
}
@@ -328,6 +331,8 @@ class VideoCapturer(private val mActivity: MainActivity) {
328
331
329
332
val gd: GradientDrawable = if (drawable is StateListDrawable ) {
330
333
drawable.current as GradientDrawable
334
+ } else if (drawable is LayerDrawable ) {
335
+ drawable.current as GradientDrawable
331
336
} else {
332
337
drawable as GradientDrawable
333
338
}
You can’t perform that action at this time.
0 commit comments