Make maxPrecision=15
This commit is contained in:
parent
6e2f20dd01
commit
8add68bddb
@ -63,9 +63,8 @@ public class NumberFormatPreference extends DialogPreference {
|
|||||||
ButterKnife.bind(this, view);
|
ButterKnife.bind(this, view);
|
||||||
|
|
||||||
final SharedPreferences preferences = getSharedPreferences();
|
final SharedPreferences preferences = getSharedPreferences();
|
||||||
final int maxPrecision = precisionSeekBar.getMaxTick();
|
precisionSeekBar.setMax(NumberFormatter.MAX_PRECISION);
|
||||||
precisionSeekBar.setMax(maxPrecision);
|
precisionSeekBar.setCurrentTick(Math.max(0, Math.min(NumberFormatter.MAX_PRECISION, Output.precision.getPreference(preferences))));
|
||||||
precisionSeekBar.setCurrentTick(Math.max(0, Math.min(maxPrecision, Output.precision.getPreference(preferences))));
|
|
||||||
notationAdapter = makeNotationAdapter();
|
notationAdapter = makeNotationAdapter();
|
||||||
notationSpinner.setAdapter(notationAdapter);
|
notationSpinner.setAdapter(notationAdapter);
|
||||||
notationSpinner.setSelection(indexOf(notationAdapter, Output.notation.getPreference(preferences)));
|
notationSpinner.setSelection(indexOf(notationAdapter, Output.notation.getPreference(preferences)));
|
||||||
|
@ -18,7 +18,7 @@ public class NumberFormatter {
|
|||||||
public static final char NO_GROUPING = 0;
|
public static final char NO_GROUPING = 0;
|
||||||
public static final int NO_ROUNDING = -1;
|
public static final int NO_ROUNDING = -1;
|
||||||
public static final int DEFAULT_MAGNITUDE = 5;
|
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.NumberFormat numberFormat = new Real.NumberFormat();
|
||||||
private final Real real = new Real();
|
private final Real real = new Real();
|
||||||
|
Loading…
Reference in New Issue
Block a user