1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-03 17:02:13 +01:00

UM25: added reset option to current accumulation

This commit is contained in:
Daniel Dakhno 2022-04-15 01:21:26 +02:00
parent 80edd065b6
commit 9ab9186e58

View File

@ -56,6 +56,7 @@ public class DataActivity extends AbstractGBActivity {
chargeDurationTextView = findViewById(R.id.um25_text_charge_duration); chargeDurationTextView = findViewById(R.id.um25_text_charge_duration);
TextView wattHoursTextView = findViewById(R.id.um25_text_wattage_sum); TextView wattHoursTextView = findViewById(R.id.um25_text_wattage_sum);
TextView currentAccumulatedTextView = findViewById(R.id.um25_text_current_sum);
View.OnLongClickListener longClickListener = new View.OnLongClickListener() { View.OnLongClickListener longClickListener = new View.OnLongClickListener() {
@Override @Override
@ -70,6 +71,7 @@ public class DataActivity extends AbstractGBActivity {
chargeDurationTextView.setOnLongClickListener(longClickListener); chargeDurationTextView.setOnLongClickListener(longClickListener);
wattHoursTextView.setOnLongClickListener(longClickListener); wattHoursTextView.setOnLongClickListener(longClickListener);
currentAccumulatedTextView.setOnLongClickListener(longClickListener);
} }
@Override @Override