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