@ -70,16 +68,16 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -70,16 +68,16 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
privateintmIconColor;
privatebooleanmColorMode=true;
privatebooleanmShowInNavigationDrawer;
privateintmCurrentUiColor=Color.BLACK;// TODO Only temporary
privateRecyclerViewmRecyclerView;
privateLightningViewAdaptermTabsAdapter;
privateBrowserControllermUiController;
@Inject
TabsManagertabsManager;
@Inject
Busbus;
BusmBus;
@Inject
PreferenceManagermPreferences;
@ -93,6 +91,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -93,6 +91,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -106,7 +105,6 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -106,7 +105,6 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -148,7 +146,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -148,7 +146,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@Override
publicvoidonStart(){
super.onStart();
bus.register(this);
mBus.register(this);
}
@Override
@ -161,7 +159,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -161,7 +159,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@Override
publicvoidonStop(){
super.onStop();
bus.unregister(this);
mBus.unregister(this);
}
@Subscribe
@ -175,16 +173,16 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -175,16 +173,16 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
publicvoidonClick(Viewv){
switch(v.getId()){
caseR.id.new_tab_button:
bus.post(newTabEvents.NewTab());
mBus.post(newTabEvents.NewTab());
break;
caseR.id.action_back:
bus.post(newNavigationEvents.GoBack());
mBus.post(newNavigationEvents.GoBack());
break;
caseR.id.action_forward:
bus.post(newNavigationEvents.GoForward());
mBus.post(newNavigationEvents.GoForward());
break;
caseR.id.action_home:
bus.post(newNavigationEvents.GoHome());
mBus.post(newNavigationEvents.GoHome());
default:
break;
}
@ -194,7 +192,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -194,7 +192,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
publicbooleanonLongClick(Viewv){
switch(v.getId()){
caseR.id.action_new_tab:
bus.post(newTabEvents.NewTabLongPress());
mBus.post(newTabEvents.NewTabLongPress());
break;
default:
break;
@ -204,7 +202,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -204,7 +202,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -213,11 +211,11 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -213,11 +211,11 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -239,7 +237,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -239,7 +237,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -263,10 +261,10 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -263,10 +261,10 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -277,7 +275,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -277,7 +275,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -317,57 +315,6 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -317,57 +315,6 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@ -394,17 +341,17 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
@@ -394,17 +341,17 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View