@ -88,7 +89,7 @@ public class AdvancedSettingsFragment extends LightningPreferenceFragment implem
@@ -88,7 +89,7 @@ public class AdvancedSettingsFragment extends LightningPreferenceFragment implem
@ -105,7 +106,7 @@ public class AdvancedSettingsFragment extends LightningPreferenceFragment implem
@@ -105,7 +106,7 @@ public class AdvancedSettingsFragment extends LightningPreferenceFragment implem
@ -146,7 +146,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@@ -146,7 +146,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@ -187,14 +187,14 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@@ -187,14 +187,14 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@ -227,7 +227,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@@ -227,7 +227,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@ -236,7 +236,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@@ -236,7 +236,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@ -294,7 +294,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@@ -294,7 +294,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@ -303,7 +303,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@@ -303,7 +303,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@ -338,7 +338,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@@ -338,7 +338,7 @@ public class BookmarksFragment extends Fragment implements View.OnClickListener,
@ -83,7 +84,7 @@ public class DisplaySettingsFragment extends LightningPreferenceFragment impleme
@@ -83,7 +84,7 @@ public class DisplaySettingsFragment extends LightningPreferenceFragment impleme
@ -97,7 +98,7 @@ public class DisplaySettingsFragment extends LightningPreferenceFragment impleme
@@ -97,7 +98,7 @@ public class DisplaySettingsFragment extends LightningPreferenceFragment impleme
@ -503,7 +504,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -503,7 +504,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -526,7 +527,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -526,7 +527,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -586,7 +587,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@@ -586,7 +587,7 @@ public class GeneralSettingsFragment extends LightningPreferenceFragment impleme
@ -114,7 +115,7 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
@@ -114,7 +115,7 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
@ -128,7 +129,7 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
@@ -128,7 +129,7 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
@ -209,7 +210,7 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
@@ -209,7 +210,7 @@ public class PrivacySettingsFragment extends LightningPreferenceFragment impleme
@ -69,8 +69,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -69,8 +69,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
privatebooleanmColorMode=true;
privatebooleanmShowInNavigationDrawer;
privateRecyclerViewmRecyclerView;
privateLightningViewAdaptermTabsAdapter;
@NullableprivateLightningViewAdaptermTabsAdapter;
privateUIControllermUiController;
@InjectTabsManagertabsManager;
@ -99,7 +98,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -99,7 +98,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -114,11 +113,11 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -114,11 +113,11 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -134,7 +133,6 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -134,7 +133,6 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@Override
publicvoidonDestroyView(){
super.onDestroyView();
mRecyclerView=null;
mTabsAdapter=null;
}
@ -148,7 +146,9 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -148,7 +146,9 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
publicvoidonResume(){
super.onResume();
// Force adapter refresh
mTabsAdapter.notifyDataSetChanged();
if(mTabsAdapter!=null){
mTabsAdapter.notifyDataSetChanged();
}
}
@Override
@ -165,7 +165,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -165,7 +165,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
}
@Override
publicvoidonClick(Viewv){
publicvoidonClick(@NonNullViewv){
switch(v.getId()){
caseR.id.new_tab_button:
mBus.post(newTabEvents.NewTab());
@ -184,7 +184,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -184,7 +184,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
}
@Override
publicbooleanonLongClick(Viewv){
publicbooleanonLongClick(@NonNullViewv){
switch(v.getId()){
caseR.id.action_new_tab:
mBus.post(newTabEvents.NewTabLongPress());
@ -198,9 +198,9 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -198,9 +198,9 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -229,15 +229,16 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -229,15 +229,16 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -293,7 +294,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -293,7 +294,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -312,7 +313,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -312,7 +313,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -326,11 +327,11 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -326,11 +327,11 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View