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)));

View File

@ -18,7 +18,7 @@ public class NumberFormatter {
public static final char NO_GROUPING = 0;
public static final int NO_ROUNDING = -1;
public static final int DEFAULT_MAGNITUDE = 5;
public static final int MAX_PRECISION = 16;
public static final int MAX_PRECISION = 15;
private final Real.NumberFormat numberFormat = new Real.NumberFormat();
private final Real real = new Real();