Commit Graph

1147 Commits

Author SHA1 Message Date
Ensar Sarajčić c755c67011 Update commons to remove the need for `minActiveState` 2023-10-16 11:03:42 +02:00
Ensar Sarajčić afe23bfb2e Use new compat helpers for window flags 2023-10-16 09:54:04 +02:00
Ensar Sarajčić c546aab7f1 Remove needless call for insets controller in `BrightDisplayActivity` 2023-10-13 11:35:14 +02:00
Ensar Sarajčić cef9f6e62b Remove `getCameraPermissionLauncher` 2023-10-13 11:34:50 +02:00
Ensar Sarajčić f21cd4ff49 Remove needless ArrayLists and `Arrays.toList` calls 2023-10-13 11:33:02 +02:00
Ensar Sarajčić 7533ad1fa2 Use `buildList` in `secondsToString` in `MainActivity` 2023-10-13 11:29:30 +02:00
Ensar Sarajčić 1600a072ef Use more descriptive names for `showSleepTimerPermission` arguments 2023-10-13 11:27:53 +02:00
Ensar Sarajčić e190cac2a3 Inline `handlePermissionResult` 2023-10-13 11:24:53 +02:00
Ensar Sarajčić dabdfdcd7d Replace `else if` with `when` in `MainActivity` 2023-10-13 11:23:10 +02:00
Ensar Sarajčić f25601db6b Move radio item list building for SleepTimer into a separate function 2023-10-13 11:20:43 +02:00
Ensar Sarajčić 4b7c4350d4 Move colors to parameters of dialog state functions 2023-10-13 11:15:15 +02:00
Ensar Sarajčić d9d3928705 Prevent updating flashlight button state before turning updating flashlight 2023-10-13 11:08:31 +02:00
Ensar Sarajčić 03b0fbb836 Update commons for menu colors fix 2023-10-12 09:33:25 +02:00
Ensar Sarajčić 4b65350e24 Update commons 2023-10-10 09:23:16 +02:00
Ensar Sarajčić 88792ccb8d Remove `preferenceValueColor` override in `SettingsScreen` 2023-10-09 16:48:39 +02:00
Ensar Sarajčić efd6c71c63 Update simple-commons 2023-10-09 16:26:13 +02:00
Ensar Sarajčić 30c95833c3 Add `useEnglish` to `SettingsScreen` 2023-10-09 13:18:25 +02:00
Ensar Sarajčić 410f2759fc Leave `android.nonTransitiveRClass` at default value 2023-10-09 12:04:41 +02:00
Ensar Sarajčić d2473cfb1f Use named parameter for `cancelCallback` in `CheckFeatureLocked` 2023-10-09 09:41:19 +02:00
Ensar Sarajčić d40d5329e5 Add navigation bar padding to `SleepTimer` on `MainScreen` 2023-10-09 09:16:01 +02:00
Ensar Sarajčić 9d46496807 Replace `getMultiplier` with `UnitItem` and stored multiplier value 2023-10-09 09:14:31 +02:00
Ensar Sarajčić 2404943fe2 Use `SettingsHorizontalDivider` instead of `HorizontalDivider` 2023-10-09 08:29:22 +02:00
Ensar Sarajčić 3579f61cb9 Simplify padding for slider in `MainScreen` 2023-10-09 08:28:46 +02:00
Ensar Sarajčić b1b4c46dc3 Make `SmallButton` component for `BrightDisplayButton` and `StroboscopeButton` 2023-10-09 08:26:22 +02:00
Ensar Sarajčić c59108e1ad Make `cancel` in `SleepTimer` synchronized too 2023-10-09 08:18:38 +02:00
Ensar Sarajčić 82c4acc96f Make `context` private in `MyCameraImpl` 2023-10-09 08:17:56 +02:00
Ensar Sarajčić b290fd0502 Use `divider_grey` instead of `Color.Gray` for `SleepTimer` 2023-10-09 08:12:05 +02:00
Ensar Sarajčić b5bd119012 Set better defaults for brightness and stroboscope sliders 2023-10-06 12:57:09 +02:00
Ensar Sarajčić d9a7598e59 Fix feature locked dialog in widget configuration 2023-10-06 12:50:25 +02:00
Ensar Sarajčić 539cf694dc Add edge to edge to `MainActivity` 2023-10-06 11:49:06 +02:00
Ensar Sarajčić 270480ead5 Add verticalScroll to `MainScreen` 2023-10-06 11:38:46 +02:00
Ensar Sarajčić 74f4675f19 Extract dialogs and permissions into separate composables 2023-10-06 11:29:20 +02:00
Ensar Sarajčić b536626c3c Use compose version of `appLaunched` 2023-10-06 11:18:27 +02:00
Ensar Sarajčić 9f6ba77f98 Use `when` instead of `else if` in `Activity.kt` 2023-10-06 11:10:24 +02:00
Ensar Sarajčić f2c8b0828d gUpdate compose dependencies 2023-10-06 08:56:46 +02:00
Ensar Sarajčić 29081b032c Use `AppTheme` instead of `AppThemeSurface` for properly transparent widget configuration screens 2023-10-05 16:52:27 +02:00
Ensar Sarajčić 0cfcc9b900 Use compose version of `CheckAppOnSdCard` 2023-10-05 16:50:25 +02:00
Ensar Sarajčić a810c0d3ef Make timer staring synchronized 2023-10-05 14:40:34 +02:00
Ensar Sarajčić c825bf16a2 Clean up color picker creation code 2023-10-05 14:36:20 +02:00
Ensar Sarajčić 2c99bd9c06 Migrate color picker in `WidgetTorchConfigureActivity` to compose 2023-10-05 14:08:43 +02:00
Ensar Sarajčić a1bdd65dbc Migrate color picker in `WidgetBrightDisplayConfigureActivity` to compose 2023-10-05 14:05:56 +02:00
Ensar Sarajčić 3c4c4a4001 Use `eventValue` for `isOrWasThankYouInstalled` 2023-10-05 14:00:21 +02:00
Ensar Sarajčić 6c8b301c9f Migrate `FeatureLockedDialog` in `WidgetTorchConfigureActivity` to compose 2023-10-05 13:59:12 +02:00
Ensar Sarajčić d28b51409b Migrate `FeatureLockedDialog` in `WidgetBrightDisplayConfigureActivity` to compose 2023-10-05 13:49:52 +02:00
Ensar Sarajčić 6893454559 Use method references in WidgetBrightDisplayConfigureActivity 2023-10-05 13:34:37 +02:00
Ensar Sarajčić 8ea675a743 Use method references in `WidgetTorchConfigureActivity` 2023-10-05 13:34:15 +02:00
Ensar Sarajčić 6372066b8e Remove unnecessary fake check when launching CustomizationActivity 2023-10-05 13:22:37 +02:00
Ensar Sarajčić 28ab74caa1 Replace `MaterialTheme` references with `SimpleTheme` 2023-10-05 13:19:31 +02:00
Ensar Sarajčić af6691c06a Remember items for custom sleep timer dialog 2023-10-05 13:16:44 +02:00
Ensar Sarajčić c33664b9e7 Show custom sleep timer dialog via callback 2023-10-05 13:10:18 +02:00