forked from Ivasoft/mattermost-mobile
Fix push notification and emm race conditions (#1691)
* Fix push notification and emm race conditions * feedback review * Removed unnecesary code
This commit is contained in:
committed by
Harrison Healey
parent
04e9c64638
commit
8e0d167f95
@@ -21,7 +21,6 @@ public class InitializationModule extends ReactContextBaseJavaModule {
|
||||
static final String TOOLBAR_BACKGROUND = "TOOLBAR_BACKGROUND";
|
||||
static final String TOOLBAR_TEXT_COLOR = "TOOLBAR_TEXT_COLOR";
|
||||
static final String APP_BACKGROUND = "APP_BACKGROUND";
|
||||
static final String DEVICE_SECURE_CACHE_KEY = "DEVICE_SECURE_CACHE_KEY";
|
||||
|
||||
private final Application mApplication;
|
||||
|
||||
@@ -55,7 +54,6 @@ public class InitializationModule extends ReactContextBaseJavaModule {
|
||||
* toolbarBackground
|
||||
* toolbarTextColor
|
||||
* appBackground
|
||||
* isDeviceSecure
|
||||
*
|
||||
* Miscellaneous:
|
||||
* MattermostManaged.Config
|
||||
@@ -100,7 +98,6 @@ public class InitializationModule extends ReactContextBaseJavaModule {
|
||||
keys.add(TOOLBAR_BACKGROUND);
|
||||
keys.add(TOOLBAR_TEXT_COLOR);
|
||||
keys.add(APP_BACKGROUND);
|
||||
keys.add(DEVICE_SECURE_CACHE_KEY);
|
||||
KeysReadableArray asyncStorageKeys = new KeysReadableArray() {
|
||||
@Override
|
||||
public int size() {
|
||||
@@ -119,7 +116,6 @@ public class InitializationModule extends ReactContextBaseJavaModule {
|
||||
String toolbarBackground = asyncStorageResults.get(TOOLBAR_BACKGROUND);
|
||||
String toolbarTextColor = asyncStorageResults.get(TOOLBAR_TEXT_COLOR);
|
||||
String appBackground = asyncStorageResults.get(APP_BACKGROUND);
|
||||
String managedConfigResult = asyncStorageResults.get(DEVICE_SECURE_CACHE_KEY);
|
||||
|
||||
if (toolbarBackground != null
|
||||
&& toolbarTextColor != null
|
||||
@@ -133,10 +129,6 @@ public class InitializationModule extends ReactContextBaseJavaModule {
|
||||
constants.put("themesExist", false);
|
||||
}
|
||||
|
||||
if (managedConfigResult != null) {
|
||||
constants.put("managedConfigResult", managedConfigResult);
|
||||
}
|
||||
|
||||
|
||||
if (credentialsExist[0]) {
|
||||
constants.put("credentialsExist", true);
|
||||
|
||||
Reference in New Issue
Block a user