Android: simplify QtWindow.setVisibility() if statement to oneliner
Change-Id: I27aad1c418c8dd5d4c7cbac51d2a2cda323573ea Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io>
This commit is contained in:
parent
3869106cc5
commit
6a75d0e95b
@ -124,12 +124,7 @@ class QtWindow extends QtLayout implements QtSurfaceInterface {
|
|||||||
|
|
||||||
@UsedFromNativeCode
|
@UsedFromNativeCode
|
||||||
void setVisible(boolean visible) {
|
void setVisible(boolean visible) {
|
||||||
QtNative.runAction(() -> {
|
QtNative.runAction(() -> setVisibility(visible ? View.VISIBLE : View.INVISIBLE));
|
||||||
if (visible)
|
|
||||||
setVisibility(View.VISIBLE);
|
|
||||||
else
|
|
||||||
setVisibility(View.INVISIBLE);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user