|
|
@ -168,7 +168,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements |
|
|
|
mIsImmersive = false, |
|
|
|
mIsImmersive = false, |
|
|
|
mShowTabsInDrawer; |
|
|
|
mShowTabsInDrawer; |
|
|
|
private int mOriginalOrientation, mBackgroundColor, mIdGenerator, mIconColor, |
|
|
|
private int mOriginalOrientation, mBackgroundColor, mIdGenerator, mIconColor, |
|
|
|
mCurrentUiColor; |
|
|
|
mCurrentUiColor = Color.BLACK; |
|
|
|
private String mSearchText, mUntitledTitle, mHomepage, mCameraPhotoPath; |
|
|
|
private String mSearchText, mUntitledTitle, mHomepage, mCameraPhotoPath; |
|
|
|
|
|
|
|
|
|
|
|
// Storage
|
|
|
|
// Storage
|
|
|
@ -333,7 +333,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements |
|
|
|
mSearch = (AutoCompleteTextView) actionBar.getCustomView().findViewById(R.id.search); |
|
|
|
mSearch = (AutoCompleteTextView) actionBar.getCustomView().findViewById(R.id.search); |
|
|
|
mUntitledTitle = getString(R.string.untitled); |
|
|
|
mUntitledTitle = getString(R.string.untitled); |
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { |
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { |
|
|
|
mBackgroundColor = getResources().getColor(R.color.primary_color, getTheme()); |
|
|
|
mBackgroundColor = getColor(R.color.primary_color); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
mBackgroundColor = getResources().getColor(R.color.primary_color); |
|
|
|
mBackgroundColor = getResources().getColor(R.color.primary_color); |
|
|
|
} |
|
|
|
} |
|
|
@ -953,18 +953,17 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|
mDrawerLayout.closeDrawers(); |
|
|
|
mDrawerLayout.closeDrawers(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, 150); |
|
|
|
}, 200); |
|
|
|
|
|
|
|
|
|
|
|
// Should update the bookmark status in BookmarksFragment
|
|
|
|
// Should update the bookmark status in BookmarksFragment
|
|
|
|
eventBus |
|
|
|
eventBus.post(new BrowserEvents.CurrentPageUrl(mCurrentView.getUrl())); |
|
|
|
.post(new BrowserEvents.CurrentPageUrl(mCurrentView.getUrl())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// new Handler().postDelayed(new Runnable() {
|
|
|
|
// new Handler().postDelayed(new Runnable() {
|
|
|
|
// @Override
|
|
|
|
// @Override
|
|
|
|
// public void run() {
|
|
|
|
// public void run() {
|
|
|
|
// // Remove browser frame background to reduce overdraw
|
|
|
|
// Remove browser frame background to reduce overdraw
|
|
|
|
// //TODO evaluate performance
|
|
|
|
//TODO evaluate performance
|
|
|
|
// mBrowserFrame.setBackgroundColor(0);
|
|
|
|
// mBrowserFrame.setBackgroundColor(Color.TRANSPARENT);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }, 300);
|
|
|
|
// }, 300);
|
|
|
|
|
|
|
|
|
|
|
|