commit | 50d6b5b03304eeb1324a847383ca9367189954ac | [log] [tgz] |
---|---|---|
author | ezio84 <brabus84@gmail.com> | Mon Sep 18 09:53:28 2017 +0200 |
committer | rohan <purohit.rohan@gmail.com> | Thu Oct 10 23:05:41 2019 +0530 |
tree | 30ff3021c8c78c049c93f7e810959c2fe65cec4b | |
parent | c568d491ac53d9b8a693f6e14b7d47ced951ea68 [diff] |
New CustomSeekBar: allow to translate "Default" value string Change-Id: I6575605bbb5246bb3a954ac39932855932489cac
diff --git a/src/com/bliss/support/preferences/CustomSeekBarPreference.java b/src/com/bliss/support/preferences/CustomSeekBarPreference.java index 1bed0a6..cbdd59b 100644 --- a/src/com/bliss/support/preferences/CustomSeekBarPreference.java +++ b/src/com/bliss/support/preferences/CustomSeekBarPreference.java
@@ -61,6 +61,10 @@ if (id > 0) { mUnits = context.getResources().getString(id); } + id = a.getResourceId(R.styleable.CustomSeekBarPreference_defaultText, 0); + if (id > 0) { + mDefaultText = context.getResources().getString(id); + } try { String newInterval = attrs.getAttributeValue(SETTINGS_NS, "interval");