Skip to content

Commit bbe43cd

Browse files
committed
Polish
1 parent aa5b91b commit bbe43cd

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

app/src/main/kotlin/com/w2sv/wifiwidget/ui/screens/home/NavigationDrawer.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ fun StatefulNavigationDrawer(
118118
selectedTheme = { theme },
119119
onThemeSelected = { homeScreenViewModel.nonAppliedInAppTheme.value = it },
120120
applyButtonEnabled = { themeRequiringUpdate },
121-
onApplyButtonPress = {
121+
onApplyButtonClick = {
122122
scope.launch {
123123
homeScreenViewModel.nonAppliedInAppTheme.sync()
124124
context.showToast(context.getString(R.string.updated_theme))
@@ -170,8 +170,7 @@ private fun NavigationDrawerContent(closeDrawer: () -> Unit, onItemThemePressed:
170170
) {
171171
ShareCompat.IntentBuilder(it)
172172
.setType("text/plain")
173-
.setText("Check out WiFi Widget!\n${it.playStoreUrl}")
174-
.setChooserTitle("Choose an app")
173+
.setText(context.getString(R.string.share_action_text))
175174
.startChooser()
176175
},
177176
NavigationDrawerItem(

app/src/main/kotlin/com/w2sv/wifiwidget/ui/screens/home/ThemeSelectionDialog.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private fun Prev() {
2323
selectedTheme = { Theme.DeviceDefault },
2424
onThemeSelected = {},
2525
applyButtonEnabled = { true },
26-
onApplyButtonPress = {}
26+
onApplyButtonClick = {}
2727
)
2828
}
2929
}
@@ -34,7 +34,7 @@ fun ThemeSelectionDialog(
3434
selectedTheme: () -> Theme,
3535
onThemeSelected: (Theme) -> Unit,
3636
applyButtonEnabled: () -> Boolean,
37-
onApplyButtonPress: () -> Unit
37+
onApplyButtonClick: () -> Unit
3838
) {
3939
AlertDialog(
4040
onDismissRequest = onDismissRequest,
@@ -47,7 +47,7 @@ fun ThemeSelectionDialog(
4747
)
4848
},
4949
confirmButton = {
50-
DialogButton(onClick = { onApplyButtonPress() }, enabled = applyButtonEnabled()) {
50+
DialogButton(onClick = { onApplyButtonClick() }, enabled = applyButtonEnabled()) {
5151
JostText(text = stringResource(id = R.string.apply))
5252
}
5353
},
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
[UI]
2-
- Simplify location access permission rational dialog
1+
- Integrated "Location: Allow all the time" enablement to fix SSID inaccessibility
2+
- Simplified location access permission rational dialog

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@
3838
<string name="you_re_not_signed_into_the_play_store">You\'re not signed into the Play Store</string>
3939
<string name="version">Version: %s</string>
4040
<string name="got_it">Got it</string>
41+
<string name="share_action_text">Check out WiFi Widget!\nhttps://play.google.com/store/apps/details?id=com.w2sv.wifiwidget</string>
4142
</resources>

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ android.nonTransitiveRClass=true
88
android.defaults.buildfeatures.buildconfig=true
99
android.uniquePackageNames=true
1010
android.nonFinalResIds=false
11-
version=1.2.40
11+
version=1.2.31
1212
versionCode=24

0 commit comments

Comments
 (0)