mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 09:22:42 +02:00
Android - Clean up enterBackground logs
This commit is contained in:
parent
2b0ac6a9bd
commit
26a9364efd
2 changed files with 0 additions and 4 deletions
|
@ -126,7 +126,6 @@ public class InterfaceActivity extends QtActivity {
|
|||
if (super.isLoading) {
|
||||
nativeEnterBackgroundCallEnqueued = true;
|
||||
} else {
|
||||
Log.d("[ENTERBACKGROUND]","onPause calling nativeEnterBackground");
|
||||
nativeEnterBackground();
|
||||
}
|
||||
//gvrApi.pauseTracking();
|
||||
|
@ -265,7 +264,6 @@ public class InterfaceActivity extends QtActivity {
|
|||
public void onAppLoadedComplete() {
|
||||
super.isLoading = false;
|
||||
if (nativeEnterBackgroundCallEnqueued) {
|
||||
Log.d("[ENTERBACKGROUND]","onAppLoadedComplete calling nativeEnterBackground");
|
||||
nativeEnterBackground();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8248,12 +8248,10 @@ void Application::saveNextPhysicsStats(QString filename) {
|
|||
|
||||
#if defined(Q_OS_ANDROID)
|
||||
void Application::enterBackground() {
|
||||
qDebug() << "[ENTERBACKGROUND] Application::enterBackground()";
|
||||
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(),
|
||||
"stop", Qt::BlockingQueuedConnection);
|
||||
if (getActiveDisplayPlugin()->isActive()) {
|
||||
getActiveDisplayPlugin()->deactivate();
|
||||
qDebug() << "[ENTERBACKGROUND] Application::enterBackground() getActiveDisplayPlugin()->deactivated";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue