NewPipe-app-android/app/src/main/java/org/schabi/newpipe/fragments/list/search
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
..
SearchFragment.java #6522: Fix null pointer exception when displaying SearchFragment 2021-06-22 16:52:02 +01:00
SuggestionItem.java Improve code style to be more consistent 2020-04-02 15:57:50 +02:00
SuggestionListAdapter.java Remove unused SuggestionListAdapter.resolveResourceIdFromAttr 2021-03-28 15:12:59 +03:00