From ae4cf5fa96cbde72c032c9ef3bdcc386bdd07737 Mon Sep 17 00:00:00 2001 From: Edwin Date: Mon, 21 Aug 2017 16:48:41 +1000 Subject: [PATCH] Fixes the mSupplyMobileApp constructing again on reopen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Have had a bug whereby if you press the ‘home’ button, but don’t actually kill the app, then you reopen the app by tapping its icon, the currentUser gets set to null (among other things that happen during the MSupplyMobileApp constructor). This was bound to cause some nasty issues, and is fixed by this change. --- android/app/src/main/AndroidManifest.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 85509890f..b487ea210 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -18,7 +18,8 @@ android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" - android:screenOrientation="landscape"> + android:screenOrientation="landscape" + android:launchMode="singleTop">