mirror of
https://github.com/oliexdev/openScale.git
synced 2025-09-08 23:50:40 +02:00
Don't enable left/right button if at start/end
This commit is contained in:
@@ -345,8 +345,8 @@ public class DataEntryActivity extends AppCompatActivity {
|
||||
|
||||
btnLeft.setVisibility(View.VISIBLE);
|
||||
btnRight.setVisibility(View.VISIBLE);
|
||||
btnLeft.setEnabled(true);
|
||||
btnRight.setEnabled(true);
|
||||
btnLeft.setEnabled(previousMeasurement != null);
|
||||
btnRight.setEnabled(nextMeasurement != null);
|
||||
|
||||
dateTimeVisibility = View.GONE;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user