mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 17:30:37 +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) {
|
if (super.isLoading) {
|
||||||
nativeEnterBackgroundCallEnqueued = true;
|
nativeEnterBackgroundCallEnqueued = true;
|
||||||
} else {
|
} else {
|
||||||
Log.d("[ENTERBACKGROUND]","onPause calling nativeEnterBackground");
|
|
||||||
nativeEnterBackground();
|
nativeEnterBackground();
|
||||||
}
|
}
|
||||||
//gvrApi.pauseTracking();
|
//gvrApi.pauseTracking();
|
||||||
|
@ -265,7 +264,6 @@ public class InterfaceActivity extends QtActivity {
|
||||||
public void onAppLoadedComplete() {
|
public void onAppLoadedComplete() {
|
||||||
super.isLoading = false;
|
super.isLoading = false;
|
||||||
if (nativeEnterBackgroundCallEnqueued) {
|
if (nativeEnterBackgroundCallEnqueued) {
|
||||||
Log.d("[ENTERBACKGROUND]","onAppLoadedComplete calling nativeEnterBackground");
|
|
||||||
nativeEnterBackground();
|
nativeEnterBackground();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8248,12 +8248,10 @@ void Application::saveNextPhysicsStats(QString filename) {
|
||||||
|
|
||||||
#if defined(Q_OS_ANDROID)
|
#if defined(Q_OS_ANDROID)
|
||||||
void Application::enterBackground() {
|
void Application::enterBackground() {
|
||||||
qDebug() << "[ENTERBACKGROUND] Application::enterBackground()";
|
|
||||||
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(),
|
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(),
|
||||||
"stop", Qt::BlockingQueuedConnection);
|
"stop", Qt::BlockingQueuedConnection);
|
||||||
if (getActiveDisplayPlugin()->isActive()) {
|
if (getActiveDisplayPlugin()->isActive()) {
|
||||||
getActiveDisplayPlugin()->deactivate();
|
getActiveDisplayPlugin()->deactivate();
|
||||||
qDebug() << "[ENTERBACKGROUND] Application::enterBackground() getActiveDisplayPlugin()->deactivated";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue