Make maxPrecision=15

This commit is contained in:
serso
2016-05-02 17:20:50 +02:00
parent 6e2f20dd01
commit 8add68bddb
2 changed files with 3 additions and 4 deletions

View File

@@ -63,9 +63,8 @@ public class NumberFormatPreference extends DialogPreference {
ButterKnife.bind(this, view);
final SharedPreferences preferences = getSharedPreferences();
final int maxPrecision = precisionSeekBar.getMaxTick();
precisionSeekBar.setMax(maxPrecision);
precisionSeekBar.setCurrentTick(Math.max(0, Math.min(maxPrecision, Output.precision.getPreference(preferences))));
precisionSeekBar.setMax(NumberFormatter.MAX_PRECISION);
precisionSeekBar.setCurrentTick(Math.max(0, Math.min(NumberFormatter.MAX_PRECISION, Output.precision.getPreference(preferences))));
notationAdapter = makeNotationAdapter();
notationSpinner.setAdapter(notationAdapter);
notationSpinner.setSelection(indexOf(notationAdapter, Output.notation.getPreference(preferences)));