Fixed null pointer exception by properly replacing the fragment
This commit is contained in:
parent
57d5298bec
commit
58d8cb6a36
@ -316,8 +316,8 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
|
|||||||
final FragmentManager fragmentManager = getSupportFragmentManager();
|
final FragmentManager fragmentManager = getSupportFragmentManager();
|
||||||
fragmentManager
|
fragmentManager
|
||||||
.beginTransaction()
|
.beginTransaction()
|
||||||
.add(containerId, tabsFragment)
|
.replace(containerId, tabsFragment)
|
||||||
.add(R.id.right_drawer, bookmarksFragment)
|
.replace(R.id.right_drawer, bookmarksFragment)
|
||||||
.commit();
|
.commit();
|
||||||
if (mShowTabsInDrawer) {
|
if (mShowTabsInDrawer) {
|
||||||
mToolbarLayout.removeView(findViewById(R.id.tabs_toolbar_container));
|
mToolbarLayout.removeView(findViewById(R.id.tabs_toolbar_container));
|
||||||
|
@ -243,7 +243,7 @@ public class TabsFragment extends Fragment implements View.OnClickListener, View
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class LightningViewAdapter extends RecyclerView.Adapter<LightningViewAdapter.LightningViewHolder> {
|
private class LightningViewAdapter extends RecyclerView.Adapter<LightningViewAdapter.LightningViewHolder> {
|
||||||
|
|
||||||
private final int mLayoutResourceId;
|
private final int mLayoutResourceId;
|
||||||
@Nullable private final Drawable mBackgroundTabDrawable;
|
@Nullable private final Drawable mBackgroundTabDrawable;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user