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();
|
||||
fragmentManager
|
||||
.beginTransaction()
|
||||
.add(containerId, tabsFragment)
|
||||
.add(R.id.right_drawer, bookmarksFragment)
|
||||
.replace(containerId, tabsFragment)
|
||||
.replace(R.id.right_drawer, bookmarksFragment)
|
||||
.commit();
|
||||
if (mShowTabsInDrawer) {
|
||||
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;
|
||||
@Nullable private final Drawable mBackgroundTabDrawable;
|
||||
|
Loading…
Reference in New Issue
Block a user