Fixed bug where recyclerview got out of sync

This commit is contained in:
Anthony Restaino 2016-07-30 16:26:02 -04:00
parent a8956e9cd3
commit b85ad208de
2 changed files with 13 additions and 12 deletions

View File

@ -134,7 +134,6 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
private static final String TAG_TABS_FRAGMENT = "TAG_TABS_FRAGMENT";
// Static Layout
@Bind(Window.ID_ANDROID_CONTENT) View mRoot;
@Bind(R.id.drawer_layout) DrawerLayout mDrawerLayout;
@Bind(R.id.content_frame) FrameLayout mBrowserFrame;
@Bind(R.id.left_drawer) ViewGroup mDrawerLeft;
@ -1310,7 +1309,6 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
finalColor = color;
}
final Window window = getWindow();
if (!mShowTabsInDrawer) {
window.setBackgroundDrawable(new ColorDrawable(Color.BLACK));

View File

@ -17,7 +17,9 @@ import acr.browser.lightning.app.BrowserApp;
import acr.browser.lightning.constant.Constants;
import acr.browser.lightning.controller.UIController;
import acr.browser.lightning.preference.PreferenceManager;
import com.anthonycr.bonsai.OnSubscribe;
import acr.browser.lightning.utils.UrlUtils;
import acr.browser.lightning.view.LightningView;
@ -66,6 +68,7 @@ public class BrowserPresenter {
public void onComplete() {
// At this point we always have at least a tab in the tab manager
tabChanged(mTabsModel.last());
mView.notifyTabViewAdded();
mView.updateTabNumber(mTabsModel.size());
}
});