Added TwoStateOwner labels

This commit is contained in:
M66B
2022-04-18 12:52:20 +02:00
parent 092b16a6dc
commit c459d3cf36
2 changed files with 13 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ public class TwoStateOwner implements LifecycleOwner {
private LifecycleRegistry registry;
private long created;
private long changed;
private String state;
private static DateFormat DTF = SimpleDateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
@@ -85,6 +86,7 @@ public class TwoStateOwner implements LifecycleOwner {
public void onAny() {
Log.i(TwoStateOwner.this + " " + registry);
changed = new Date().getTime();
state = registry.getCurrentState().name();
}
});