Android: Remove invalid error message
All usage of context menus prints out an error message because onContextMenuClosed() is called more than once. We just return silently instead if the method is called after the menu has already been closed. Change-Id: Ifa27ed42d188fdf670f09c4b1450b9fec0d5941f Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
parent
e903b5cdda
commit
939a001c3a
@ -858,10 +858,8 @@ public class QtActivityDelegate
|
||||
|
||||
public void onContextMenuClosed(Menu menu)
|
||||
{
|
||||
if (!m_contextMenuVisible) {
|
||||
Log.e(QtNative.QtTAG, "invalid onContextMenuClosed call");
|
||||
if (!m_contextMenuVisible)
|
||||
return;
|
||||
}
|
||||
m_contextMenuVisible = false;
|
||||
QtNative.onContextMenuClosed(menu);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user