Skip to content

Commit 59d2f18

Browse files
committed
Update multi positional selected indicator string
1 parent bdbe9d0 commit 59d2f18

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

app/src/main/java/com/drdisagree/colorblendr/ui/widgets/SeekbarWidget.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,13 @@ class SeekbarWidget : RelativeLayout {
100100
)
101101
} else {
102102
context.getString(
103-
R.string.opt_selected2,
104-
if (!isDecimalFormat) seekBar!!.progress.toString() else DecimalFormat(
105-
decimalFormat
103+
R.string.opt_selected1,
104+
context.getString(
105+
R.string.opt_selected2,
106+
if (!isDecimalFormat) seekBar!!.progress.toString()
107+
else DecimalFormat(decimalFormat).format((seekBar!!.progress / outputScale).toDouble()),
108+
valueFormat
106109
)
107-
.format((seekBar!!.progress / outputScale).toDouble()),
108-
valueFormat
109110
)
110111
}
111112
handleResetVisibility()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
<string name="icon">Icon</string>
131131
<string name="reset">Reset</string>
132132
<string name="opt_selected1">Selected: %s</string>
133-
<string name="opt_selected2">Selected: %s%s</string>
133+
<string name="opt_selected2" translatable="false">%1$s%2$s</string>
134134
<string name="dismiss">Dismiss</string>
135135
<string name="retry">Retry</string>
136136
<string name="grant">Grant</string>

0 commit comments

Comments
 (0)