From 66013cfef3f0b4f7ed16ef36e7ee2ed54a1e01ed Mon Sep 17 00:00:00 2001 From: Explodingbill Date: Wed, 24 Jan 2024 15:17:34 +1100 Subject: [PATCH] 8008135 --- src/Client/AndroidUI.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Client/AndroidUI.h b/src/Client/AndroidUI.h index 01392a8..f8f3417 100644 --- a/src/Client/AndroidUI.h +++ b/src/Client/AndroidUI.h @@ -510,8 +510,12 @@ class $modify (LoadingLayer) { bool init(bool p0) { - LoadingLayer::init(p0); + if (!LoadingLayer::init(p0)) + return false; + this->setID("loading-layer"); + + return true; } }; @@ -568,8 +572,7 @@ class $modify (AchievementNotifier) AchievementNotifier::willSwitchToScene(p0); - //if (!p0->getChildByID("loading-layer")) - if (true) + if (!p0->getChildByID("loading-layer")) { auto andBall = AndroidBall::create(); if (andBall)