-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue of don't keep activities #108
Fix issue of don't keep activities #108
Conversation
…y is null. ref : https://github.com/google/iosched/blob/b3c3ae2a5b41e28c07383644d78e5c076288322f/android/src/main/java/com/google/samples/apps/iosched/ui/SimpleSinglePaneActivity.java#L45 http://developer.android.com/intl/ja/reference/android/app/Fragment.html > First-time init; create fragment to embed in activity.
FragmentActivity calls onActivityResult() of the child Fragment automatically. ref : https://github.com/android/platform_frameworks_support/blob/309059f029f498bf0bf2c431c9f3617915271d7f/v4/java/android/support/v4/app/FragmentActivity.java#L156
@hkurokawa Could you review this when you have time? 🙏 |
👀 |
@sys1yagi Thank you for your fix. It is great. By the way, I feel like
|
ic, I'll fix it as well. 😉 |
# Conflicts: # app/src/main/java/io/github/droidkaigi/confsched/activity/ActivityNavigator.java # app/src/main/java/io/github/droidkaigi/confsched/activity/MainActivity.java
SearchActivity issue is complicated and it has nothing to do with this PR. |
@sys1yagi Oh, sorry for that. No, don't mind. Please create another PR and let me know when this PR is ready to merge. I will merge this PR. |
@sys1yagi Great thanks!! |
LGTM! |
Fix issue of don't keep activities
thanks! I'm writing detail of this change now. |
Detail of this changes. (Japanese) https://gist.github.com/sys1yagi/b0596187917501331707 |
@sys1yagi Thanks! I'll read it 👍 |
Related issue
#95
Problem
Cause
Crash point is SessionsFragment.java#L175.
SessionsFragment#onActivityResult()
is unnecessary. FragmentActivity calls onActivityResult() of the child Fragment automatically. So, you should using the Fragment#startActivityForResult().Solution
Tests
Verified the following: