Skip to content

Commit

Permalink
Merge pull request #11 from zeoflow/bug/issue-#9
Browse files Browse the repository at this point in the history
Fixed invocation of `NULL` Activity
  • Loading branch information
teogor authored Sep 5, 2022
2 parents 6e86099 + 17e251a commit 539f7be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 539f7be

Please sign in to comment.