Android - Clean up enterBackground logs

This commit is contained in:
Cristian Luis Duarte 2018-06-08 20:59:38 -03:00
parent 2b0ac6a9bd
commit 26a9364efd
2 changed files with 0 additions and 4 deletions

View file

@ -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();
}
}

View file

@ -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";
}
}