MCPcopy Create free account
hub / github.com/M66B/FairEmail / create

Method create

app/src/main/java/eu/faircode/email/TwoStateOwner.java:80–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 }
79
80 private void create() {
81 if (owned) {
82 // Initialize
83 registry = new LifecycleRegistry(this);
84 registry.addObserver(new LifecycleObserver() {
85 @OnLifecycleEvent(Lifecycle.Event.ON_ANY)
86 public void onAny() {
87 Log.i(TwoStateOwner.this + " " + registry);
88 changed = new Date().getTime();
89 state = registry.getCurrentState().name();
90 }
91 });
92
93 setState(Lifecycle.State.CREATED);
94 synchronized (list) {
95 list.add(this);
96 }
97 } else
98 Log.e(TwoStateOwner.this + " not owned");
99 }
100
101 void start() {
102 Lifecycle.State state = registry.getCurrentState();

Callers 15

TwoStateOwnerMethod · 0.95
recreateMethod · 0.95
onCreateDialogMethod · 0.45
onCreateDialogMethod · 0.45
onCreateDialogMethod · 0.45
onCreateDialogMethod · 0.45
onCreateDialogMethod · 0.45
onCreateDialogMethod · 0.45
onCreateDialogMethod · 0.45
onCreateDialogMethod · 0.45
onCreateDialogMethod · 0.45
onCreateDialogMethod · 0.45

Calls 4

setStateMethod · 0.95
eMethod · 0.95
addObserverMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected