Skip to content

Commit 530427c

Browse files
author
Evan Greer
committed
addresses check
1 parent 44c7e0a commit 530427c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class IterableApi {
5050
private String inboxSessionId;
5151
private IterableAuthManager authManager;
5252
private HashMap<String, String> deviceAttributes = new HashMap<>();
53-
private IterableKeychain keychain;
53+
public IterableKeychain keychain;
5454

5555
void fetchRemoteConfiguration() {
5656
apiClient.getRemoteConfiguration(new IterableHelper.IterableActionHandler() {
@@ -389,7 +389,7 @@ public void onSwitchToForeground() {
389389
public void onSwitchToBackground() {}
390390
};
391391

392-
void onForeground() {
392+
private void onForeground() {
393393
boolean systemNotificationEnabled = NotificationManagerCompat.from(_applicationContext).areNotificationsEnabled();
394394
SharedPreferences sharedPref = sharedInstance.getMainActivityContext().getSharedPreferences(IterableConstants.SHARED_PREFS_FILE, Context.MODE_PRIVATE);
395395
boolean isNotificationEnabled = sharedPref.getBoolean(IterableConstants.SHARED_PREFS_DEVICE_NOTIFICATIONS_ENABLED, false);
@@ -400,7 +400,7 @@ void onForeground() {
400400
}
401401

402402
if (sharedInstance.config.autoPushRegistration && sharedInstance.isInitialized() && isNotificationEnabled != systemNotificationEnabled) {
403-
if(systemNotificationEnabled) {
403+
if (systemNotificationEnabled) {
404404
sharedInstance.registerForPush();
405405
} else {
406406
sharedInstance.disablePush();

0 commit comments

Comments
 (0)