File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
iterableapi/src/main/java/com/iterable/iterableapi Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments