Android: Don't pause when in multi window mode

When the application is in multi window mode then when pausing it should
not suspend the application as it can still be visible in the
background.

Change-Id: I03a561459b2aa04c808b7d4220cd3e558671dd17
Pick-to: 5.15
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
bb10
Andy Shaw 2020-06-23 23:32:37 +02:00
parent 66c9033f7d
commit 33c24b9b9d
1 changed files with 2 additions and 1 deletions

View File

@ -909,7 +909,8 @@ public class QtActivityDelegate
public void onPause()
{
QtNative.setApplicationState(ApplicationInactive);
if (Build.VERSION.SDK_INT < 24 || !m_activity.isInMultiWindowMode())
QtNative.setApplicationState(ApplicationInactive);
}
public void onResume()