Skip to content

Commit 26a4320

Browse files
committed
added restart button
- added restart button to the main app's UI and the notification actions, this button will appear when the timeout is started and counting down, it enables restarting the count down of the currently selected timeout without having to cycle through all timeouts - added widget preview image for launchers that don't support widget preview layout Change-Id: Iceee03e4b91c2cf26fa571db123bbba196b94f76 Signed-off-by: AbdAlMoniem AlHifnawy <hifnawy_moniem@hotmail.com>
1 parent 260414b commit 26a4320

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

.github/workflows/publish_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
required: true
1010
type: choice
1111
options:
12+
- v1.7.1
1213
- v1.7.0
1314
- v1.6.7
1415
- v1.6.6

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ android {
1515
applicationId = "com.hifnawy.caffeinate"
1616
minSdk = 24
1717
targetSdk = 35
18-
versionCode = 26
19-
versionName = "1.7.0"
18+
versionCode = 27
19+
versionName = "1.7.1"
2020

2121
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2222
}
12 KB
Loading

app/src/main/java/com/hifnawy/caffeinate/services/QuickTileService.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ class QuickTileService : TileService(), ServiceStatusObserver {
133133

134134
quickTile.run {
135135
state = tileState
136-
label = localizedApplicationContext.getString(R.string.app_name)
136+
label = when {
137+
Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q -> localizedApplicationContext.getString(R.string.app_name)
138+
else -> tileSubtitle
139+
}
137140
contentDescription = localizedApplicationContext.getString(R.string.app_name)
138141
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) subtitle = tileSubtitle
139142
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) stateDescription = tileSubtitle

app/src/main/res/drawable/baseline_shuffle_24.xml~

Lines changed: 0 additions & 13 deletions
This file was deleted.
9.79 KB
Loading

app/src/main/res/xml/widget_info.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
android:description="@string/app_name"
55
android:initialKeyguardLayout="@layout/widget"
66
android:initialLayout="@layout/widget"
7+
android:previewImage="@drawable/widget_preview"
78
android:previewLayout="@layout/widget"
89
android:resizeMode="none"
910
android:targetCellWidth="1"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
added restart button
2+
3+
- added restart button to the main app's UI and the notification actions,
4+
this button will appear when the timeout is started and counting down,
5+
it enables restarting the count down of the currently selected timeout
6+
without having to cycle through all timeouts
7+
- added widget preview image for launchers that don't support widget
8+
preview layout

0 commit comments

Comments
 (0)