mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 05:16:51 +01:00
UM25: added reset option to current accumulation
This commit is contained in:
parent
80edd065b6
commit
9ab9186e58
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user