-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Timob 17016 new #6020
Timob 17016 new #6020
Conversation
[TIMOB-17532] Updated ioslib to 0.2.1 which fixes some debug output.
[TIMOB-17525] Added support for Android L.
…25_3_4_X Revert "[TIMOB-17525] Added support for Android L."
[TIMOB-17604] Fixed typo when referencing a device.
I think this might have too many commits in it. |
Looks like this PR has another PR's commits as well. |
@@ -35,8 +35,10 @@ public void setTab(TiUIActionBarTab tab) { | |||
|
|||
@Override | |||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |||
|
|||
return tab.getContentView(); | |||
if (tab != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Under what circumstance would this be null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already merged in master and in 3_4_X by #5651.
@hieupham007 - it is null for the zombie fragments that are retained in the fragment manager (and NPE happens without the test), and are recreated (and onCreateView is called) if the activity was destroyed and then recreated. This is fixed in my latest PR which ensures that fragments are reused: #6008
This PR should be committing for 3.4.X, but is commiting to master branch. |
https://jira.appcelerator.org/browse/TIMOB-17016
Null check added to prevent crash.
Based on 3_4_X.