MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / deinitializeImpl

Method deinitializeImpl

CodenameOne/src/com/codename1/ui/Form.java:2588–2615  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2586
2587 /// {@inheritDoc}
2588 @Override
2589 void deinitializeImpl() {
2590 if (!comboLock) {
2591 // Some input devices are compound widgets that contain
2592 // comboboxes. If those comboboxes are selected, then
2593 // it shows the combobox popup (which is a Dialog) which will
2594 // denitialize the form. We don't want this to trigger the
2595 // input device change (which may close the input device).
2596 // Specifically this is to fix an issue with the Calendar picker
2597 // https://groups.google.com/d/msgid/codenameone-discussions/b8e198a4-3dd1-4feb-81a1-456188e81d92%40googlegroups.com?utm_medium=email&utm_source=footer
2598 try {
2599 setCurrentInputDevice(null);
2600 } catch (Exception ex) {
2601 Log.e(ex);
2602 }
2603 }
2604 if (getParent() != null) {
2605 Form f = getParent().getComponentForm();
2606 if (f != null) {
2607 f.deregisterAnimated(this);
2608 }
2609 }
2610 super.deinitializeImpl();
2611 animMananger.flush();
2612 componentsAwaitingRelease = null;
2613 pressedCmp = null;
2614 dragged = null;
2615 }
2616
2617 /// {@inheritDoc}
2618 @Override

Callers 1

setCurrentMethod · 0.95

Calls 6

setCurrentInputDeviceMethod · 0.95
eMethod · 0.95
deregisterAnimatedMethod · 0.95
getParentMethod · 0.65
flushMethod · 0.65
getComponentFormMethod · 0.45

Tested by

no test coverage detected