diff --git a/flowly/src/main/java/com/zeoflow/flowly/ApplicationManager.java b/flowly/src/main/java/com/zeoflow/flowly/ApplicationManager.java index 228ef2c..99ef15d 100644 --- a/flowly/src/main/java/com/zeoflow/flowly/ApplicationManager.java +++ b/flowly/src/main/java/com/zeoflow/flowly/ApplicationManager.java @@ -109,7 +109,7 @@ public static FragmentManager getFragmentManager() { public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) { if (lastActivity == null) { lastActivity = new WeakReference<>(activity); - } else if (currentActivity.get() != null && currentActivity != lastActivity) { + } else if (currentActivity != lastActivity && currentActivity != null) { lastActivity = new WeakReference<>(currentActivity.get()); } currentActivity = new WeakReference<>(activity); diff --git a/gradle.properties b/gradle.properties index d9e568b..1237046 100644 --- a/gradle.properties +++ b/gradle.properties @@ -23,7 +23,7 @@ android.nonTransitiveRClass=true # Maven POM_NAME=Flowly POM_PACKAGING=aar -VERSION_NAME=1.0.0 +VERSION_NAME=1.0.1 GROUP=com.zeoflow.flowly POM_DESCRIPTION=Helps you manage your app states easier. POM_URL=https://github.com/zeoflow/flowly