1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-22 16:23:09 +02:00

set default expand evolution to false

This commit is contained in:
OliE
2018-04-08 11:11:55 +02:00
parent 896663983b
commit 76cb5aa1bd

View File

@@ -128,7 +128,7 @@ public class DataEntryActivity extends BaseAppCompatActivity {
onMeasurementViewUpdateListener updateListener = new onMeasurementViewUpdateListener();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
final boolean expand = isAddActivity()
? false : prefs.getBoolean(PREF_EXPAND, true);
? false : prefs.getBoolean(PREF_EXPAND, false);
for (MeasurementView measurement : dataEntryMeasurements) {
tableLayoutDataEntry.addView(measurement);
@@ -215,7 +215,7 @@ public class DataEntryActivity extends BaseAppCompatActivity {
case R.id.expandButton:
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
final boolean expand = !prefs.getBoolean(PREF_EXPAND, true);
final boolean expand = !prefs.getBoolean(PREF_EXPAND, false);
prefs.edit().putBoolean(PREF_EXPAND, expand).apply();
for (MeasurementView measurement : dataEntryMeasurements) {