Commit Graph

89 Commits

Author SHA1 Message Date
cef9f6e62b Remove getCameraPermissionLauncher 2023-10-13 11:34:50 +02:00
f21cd4ff49 Remove needless ArrayLists and Arrays.toList calls 2023-10-13 11:33:02 +02:00
7533ad1fa2 Use buildList in secondsToString in MainActivity 2023-10-13 11:29:30 +02:00
1600a072ef Use more descriptive names for showSleepTimerPermission arguments 2023-10-13 11:27:53 +02:00
e190cac2a3 Inline handlePermissionResult 2023-10-13 11:24:53 +02:00
dabdfdcd7d Replace else if with when in MainActivity 2023-10-13 11:23:10 +02:00
f25601db6b Move radio item list building for SleepTimer into a separate function 2023-10-13 11:20:43 +02:00
410f2759fc Leave android.nonTransitiveRClass at default value 2023-10-09 12:04:41 +02:00
b5bd119012 Set better defaults for brightness and stroboscope sliders 2023-10-06 12:57:09 +02:00
539cf694dc Add edge to edge to MainActivity 2023-10-06 11:49:06 +02:00
74f4675f19 Extract dialogs and permissions into separate composables 2023-10-06 11:29:20 +02:00
b536626c3c Use compose version of appLaunched 2023-10-06 11:18:27 +02:00
0cfcc9b900 Use compose version of CheckAppOnSdCard 2023-10-05 16:50:25 +02:00
af6691c06a Remember items for custom sleep timer dialog 2023-10-05 13:16:44 +02:00
c33664b9e7 Show custom sleep timer dialog via callback 2023-10-05 13:10:18 +02:00
057cfefb64 Use stateIn to move default values to viewModel 2023-10-05 12:39:40 +02:00
eae63898e3 Use compose PermissionRequiredAlertDialog for sleep timer permission 2023-10-05 09:43:37 +02:00
c37ced08a7 Migrate SleepTimerCustomDialog to compose 2023-10-05 08:40:31 +02:00
a3e188529d Update commons to update RadioGroupAlertDialog 2023-10-04 17:41:36 +02:00
6296d893b0 Use apply when building SleepTimerRadioDialog 2023-10-04 16:36:47 +02:00
2fd3dc5c77 Use compose RadioGroupDialog 2023-10-04 16:24:06 +02:00
3f901ff290 Split compose screens into multiple smaller sections 2023-10-03 09:10:32 +02:00
ee9a539cf5 Remove EventBus usage 2023-10-02 18:24:02 +02:00
132b469b44 Change base for all activities to ComponentActivity 2023-10-02 16:41:59 +02:00
81096e35a6 Properly reflect flash state in main screen icons 2023-10-02 12:59:57 +02:00
3414295887 Fix stroboscope stored progress 2023-10-02 12:45:38 +02:00
87e92df993 Fix SleepTimer visibility on main screen 2023-10-02 12:37:33 +02:00
cd02f52d12 Fix light theme colors 2023-10-02 10:42:18 +02:00
de2ce0ea73 Properly handle changing preferences values for main screen 2023-10-02 09:49:00 +02:00
7937a71b0d Migrate MainActivity to compose 2023-10-02 09:06:39 +02:00
174b2ac803 Use more sensible values for sleep timer
This also changes all of these items to use `getQuantityString` instead of
manually appending values.
2023-09-06 10:41:25 +02:00
c55e784081 Fix 1 minute radio item string 2023-09-06 10:35:34 +02:00
788ef6f01f Add radio button for seconds for custom sleep timer 2023-09-06 09:58:24 +02:00
c00d4cc30c Add more lower default values for sleep timer 2023-09-06 08:10:21 +02:00
2572f7cfbf Properly update sleep timer color on resume 2023-09-06 08:08:28 +02:00
db5b553ce8 Add sleep timer
This closes #105
2023-09-04 10:39:33 +02:00
c58a4aa1f2 make activity inflating consistent across simple apps 2023-08-25 22:49:39 +03:00
8f1cbec591 make activity inflating consistent across simple apps 2023-08-16 13:14:07 +03:00
bc7e02810e replace kotlin synthetic usages with viewbinding 2023-08-01 22:54:22 +03:00
f9a1bb1e04 Fix #159: Button remains in pressed state if you turn screen lock on/off 2023-07-11 06:22:39 +02:00
a84c22ebf8 fix(#165): fix flashlight status after coming back from camera app 2023-02-14 18:45:15 +01:00
017d9f7557 do not show More Apps From Us as an icon 2023-02-10 19:08:37 +01:00
f6827cec6d updating commons 2022-12-27 17:01:38 +01:00
f82331559c redesigning some screens 2022-12-20 19:20:45 +01:00
2dc20b3ac9 show a More apps from us menu button at the top menu 2022-11-15 15:59:43 +01:00
98c0f0578e cleanup flash implementation
- fix issues with brightness control
- add separate classes for Android 5 and Android 6+ for simplicity
- properly cleanup camera in onDestory and also when stroboscope/flashlight mode are disabled
2022-11-14 19:17:00 +00:00
87b678e4bb show/hide brightness seekbar from camera callback 2022-11-09 09:36:08 +00:00
75eca9e3f0 set brightness level to maximum by default 2022-10-26 14:16:27 +01:00
cea57e9db0 Add torch brightness level support for Android 13+ 2022-10-23 09:03:16 +01:00
1361a28cb1 updating commons with some material elements 2022-07-20 17:43:21 +02:00