Skip to content

Commit ad81c4f

Browse files
committed
sweet: cutout: make the ring bigger when camera is in use
Signed-off-by: daniml3 <daniel@danielml.dev>
1 parent 93c3657 commit ad81c4f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cutout/src/com/arrow/cutoutringservice/CutoutRingService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@ public class CutoutRingService extends BroadcastReceiver {
5151
private static final String TAG = "CutoutRingServiceSweet";
5252
private static final String FRONT_CAMERA_ID = "1";
5353

54-
private static final int RING_SIZE = 64;
54+
private static final int RING_SIZE = 70;
5555
private static final int X_OFFSET = 0;
56-
private static final int X_OFFSET_HORIZONTAL = 20;
57-
private static final int Y_OFFSET = 20;
56+
private static final int X_OFFSET_HORIZONTAL = 17;
57+
private static final int Y_OFFSET = 17;
5858
private static final int Y_OFFSET_HORIZONTAL = 0;
5959
private static final int ANIMATION_MS = 1000;
6060

6161
private static final int HIDDEN = 0;
6262
private static final int SHOWN_SMALL = 1;
6363
private static final int SHOWN = 2;
6464

65-
private static final float SCALE_CAMERA_INACTIVE = 0.8f;
65+
private static final float SCALE_CAMERA_INACTIVE = 0.73f;
6666

6767
private final WindowManager.LayoutParams mRingParams = new WindowManager.LayoutParams(
6868
WindowManager.LayoutParams.TYPE_SECURE_SYSTEM_OVERLAY,

0 commit comments

Comments
 (0)