mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-21 16:02:04 +02:00
set default expand evolution to false
This commit is contained in:
@@ -128,7 +128,7 @@ public class DataEntryActivity extends BaseAppCompatActivity {
|
|||||||
onMeasurementViewUpdateListener updateListener = new onMeasurementViewUpdateListener();
|
onMeasurementViewUpdateListener updateListener = new onMeasurementViewUpdateListener();
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
final boolean expand = isAddActivity()
|
final boolean expand = isAddActivity()
|
||||||
? false : prefs.getBoolean(PREF_EXPAND, true);
|
? false : prefs.getBoolean(PREF_EXPAND, false);
|
||||||
|
|
||||||
for (MeasurementView measurement : dataEntryMeasurements) {
|
for (MeasurementView measurement : dataEntryMeasurements) {
|
||||||
tableLayoutDataEntry.addView(measurement);
|
tableLayoutDataEntry.addView(measurement);
|
||||||
@@ -215,7 +215,7 @@ public class DataEntryActivity extends BaseAppCompatActivity {
|
|||||||
|
|
||||||
case R.id.expandButton:
|
case R.id.expandButton:
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
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();
|
prefs.edit().putBoolean(PREF_EXPAND, expand).apply();
|
||||||
|
|
||||||
for (MeasurementView measurement : dataEntryMeasurements) {
|
for (MeasurementView measurement : dataEntryMeasurements) {
|
||||||
|
Reference in New Issue
Block a user