1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-30 11:40:23 +02:00

Hide top date/time bar when adding new measurement

This commit is contained in:
Erik Johansson
2018-02-18 20:59:48 +01:00
parent 53738b713b
commit 66087b74b7

View File

@@ -31,6 +31,7 @@ import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TableLayout;
import android.widget.TextView;
import android.widget.Toast;
@@ -328,6 +329,7 @@ public class DataEntryActivity extends AppCompatActivity {
expandButton.setVisible(true);
deleteButton.setVisible(true);
((LinearLayout)txtDataNr.getParent()).setVisibility(View.VISIBLE);
btnLeft.setVisibility(View.VISIBLE);
btnRight.setVisibility(View.VISIBLE);
btnLeft.setEnabled(previousMeasurement != null);
@@ -341,6 +343,7 @@ public class DataEntryActivity extends AppCompatActivity {
expandButton.setVisible(true);
deleteButton.setVisible(true);
((LinearLayout)txtDataNr.getParent()).setVisibility(View.VISIBLE);
btnLeft.setVisibility(View.VISIBLE);
btnRight.setVisibility(View.VISIBLE);
btnLeft.setEnabled(false);
@@ -352,8 +355,7 @@ public class DataEntryActivity extends AppCompatActivity {
expandButton.setVisible(false);
deleteButton.setVisible(false);
btnLeft.setVisibility(View.GONE);
btnRight.setVisibility(View.GONE);
((LinearLayout)txtDataNr.getParent()).setVisibility(View.GONE);
break;
}