mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 23:26:12 +02:00
Added TwoStateOwner labels
This commit is contained in:
@@ -65,6 +65,17 @@ public class CoalMine {
|
||||
reporter.getLabels().add("started=" + label);
|
||||
}
|
||||
}
|
||||
} else if (className.equals(TwoStateOwner.class.getName())) {
|
||||
HeapField hfState = instance.get(className, "state");
|
||||
if (hfState != null) {
|
||||
String state = hfState.getValue().readAsJavaString();
|
||||
reporter.getLabels().add("state=" + state);
|
||||
}
|
||||
HeapField hfOwned = instance.get(className, "owned");
|
||||
if (hfOwned != null) {
|
||||
Boolean owned = hfOwned.getValue().getAsBoolean();
|
||||
reporter.getLabels().add("owned=" + owned);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user