straw/app/src/main/java/org/schabi/newpipe/fragments
Douile 384ca66205
#6522: Fix null pointer exception when displaying SearchFragment
It seems due to #6394 updating the FragmentX library there was a
change to the order of lifecycle calls, as such onResume() was no longer
before onCreateOptionsMenu() creating a null pointer exception when
using service in onCreateOptionsMenu() as it is only set in onResume().

By moving the initialization of service to onStart() which still happens
before onCreateOptionsMenu() this crash can be avoided. This commit also
adds a check for a null service to prevent future crashes for similar
issues.
2021-06-22 16:52:02 +01:00
..
detail Merge pull request #3371 from mauriciocolli/feed-hide-played-items 2021-06-18 09:18:48 +02:00
list #6522: Fix null pointer exception when displaying SearchFragment 2021-06-22 16:52:02 +01:00
BackPressable.java Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
BaseStateFragment.java Fix error panel created in onViewCreated() but disposed in onDestroy() 2021-03-24 09:27:17 +01:00
BlankFragment.java Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
EmptyFragment.java fix Rotation crash on „Video not available“ page (#5941) 2021-05-05 08:55:54 +02:00
MainFragment.java Do not hide feed buttons (show/hide & help) behind three-dots menu 2021-06-14 19:02:57 +02:00
OnScrollBelowItemsListener.java Lint: Move declarations into assignments 2020-11-18 17:48:01 -05:00
ViewContract.java Add report/solve-recaptcha button in error panel 2021-03-12 23:21:49 +01:00