summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DEPS2
-rw-r--r--build/android/pylib/constants/__init__.py2
-rw-r--r--build/common.gypi2
-rw-r--r--build/config/android/config.gni2
-rw-r--r--build/secondary/third_party/android_tools/BUILD.gn1
-rw-r--r--chrome/android/java/res/drawable-hdpi/ic_collapsed.png (renamed from chrome/android/java/res/drawable-hdpi/ic_collapse.png)bin218 -> 218 bytes
-rw-r--r--chrome/android/java/res/drawable-hdpi/ic_expanded.png (renamed from chrome/android/java/res/drawable-hdpi/ic_expand.png)bin219 -> 219 bytes
-rw-r--r--chrome/android/java/res/drawable-mdpi/ic_collapsed.png (renamed from chrome/android/java/res/drawable-mdpi/ic_collapse.png)bin130 -> 130 bytes
-rw-r--r--chrome/android/java/res/drawable-mdpi/ic_expanded.png (renamed from chrome/android/java/res/drawable-mdpi/ic_expand.png)bin128 -> 128 bytes
-rw-r--r--chrome/android/java/res/drawable-xhdpi/ic_collapsed.png (renamed from chrome/android/java/res/drawable-xhdpi/ic_collapse.png)bin176 -> 176 bytes
-rw-r--r--chrome/android/java/res/drawable-xhdpi/ic_expanded.png (renamed from chrome/android/java/res/drawable-xhdpi/ic_expand.png)bin179 -> 179 bytes
-rw-r--r--chrome/android/java/res/drawable-xxhdpi/ic_collapsed.png (renamed from chrome/android/java/res/drawable-xxhdpi/ic_collapse.png)bin204 -> 204 bytes
-rw-r--r--chrome/android/java/res/drawable-xxhdpi/ic_expanded.png (renamed from chrome/android/java/res/drawable-xxhdpi/ic_expand.png)bin206 -> 206 bytes
-rw-r--r--chrome/android/java/res/drawable-xxxhdpi/ic_collapsed.png (renamed from chrome/android/java/res/drawable-xxxhdpi/ic_collapse.png)bin263 -> 263 bytes
-rw-r--r--chrome/android/java/res/drawable-xxxhdpi/ic_expanded.png (renamed from chrome/android/java/res/drawable-xxxhdpi/ic_expand.png)bin255 -> 255 bytes
-rw-r--r--chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsGroupView.java4
-rw-r--r--chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java11
-rw-r--r--chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java4
-rw-r--r--chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java9
19 files changed, 23 insertions, 14 deletions
diff --git a/DEPS b/DEPS
index e63c8ccb..816b8b9 100644
--- a/DEPS
+++ b/DEPS
@@ -424,7 +424,7 @@ deps_os = {
Var('chromium_git') + '/external/android_protobuf.git' + '@' + '999188d0dc72e97f7fe08bb756958a2cf090f4e7',
'src/third_party/android_tools':
- Var('chromium_git') + '/android_tools.git' + '@' + '4238a28593b7e6178c95431f91ca8c24e45fa7eb',
+ Var('chromium_git') + '/android_tools.git' + '@' + '54492f99c84cab0826a8e656efeb33a1b1bf5a04',
'src/third_party/apache-mime4j':
Var('chromium_git') + '/chromium/deps/apache-mime4j.git' + '@' + '28cb1108bff4b6cf0a2e86ff58b3d025934ebe3a',
diff --git a/build/android/pylib/constants/__init__.py b/build/android/pylib/constants/__init__.py
index 6be2efb..0b61403 100644
--- a/build/android/pylib/constants/__init__.py
+++ b/build/android/pylib/constants/__init__.py
@@ -156,7 +156,7 @@ DEVICE_PERF_OUTPUT_DIR = (
SCREENSHOTS_DIR = os.path.join(DIR_SOURCE_ROOT, 'out_screenshots')
ANDROID_SDK_VERSION = version_codes.MARSHMALLOW
-ANDROID_SDK_BUILD_TOOLS_VERSION = '23.0.0'
+ANDROID_SDK_BUILD_TOOLS_VERSION = '23.0.1'
ANDROID_SDK_ROOT = os.path.join(DIR_SOURCE_ROOT,
'third_party', 'android_tools', 'sdk')
ANDROID_SDK_TOOLS = os.path.join(ANDROID_SDK_ROOT,
diff --git a/build/common.gypi b/build/common.gypi
index 5b05435..eaba251 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1718,7 +1718,7 @@
'android_host_arch%': '<!(uname -m)',
# Android API-level of the SDK used for compilation.
'android_sdk_version%': '23',
- 'android_sdk_build_tools_version%': '23.0.0',
+ 'android_sdk_build_tools_version%': '23.0.1',
'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')",
'conditions': [
diff --git a/build/config/android/config.gni b/build/config/android/config.gni
index 7ca1b70..19ed535 100644
--- a/build/config/android/config.gni
+++ b/build/config/android/config.gni
@@ -17,7 +17,7 @@ if (is_android) {
if (!defined(default_android_sdk_root)) {
default_android_sdk_root = "//third_party/android_tools/sdk"
default_android_sdk_version = "23"
- default_android_sdk_build_tools_version = "23.0.0"
+ default_android_sdk_build_tools_version = "23.0.1"
}
if (!defined(default_android_keystore_path)) {
diff --git a/build/secondary/third_party/android_tools/BUILD.gn b/build/secondary/third_party/android_tools/BUILD.gn
index 4e38b93..c777fbd 100644
--- a/build/secondary/third_party/android_tools/BUILD.gn
+++ b/build/secondary/third_party/android_tools/BUILD.gn
@@ -33,6 +33,7 @@ android_resources("android_support_design_resources") {
resource_dirs = [ "$android_sdk_root/extras/android/support/design/res" ]
deps = [
":android_support_v7_appcompat_resources",
+ ":android_support_v7_recyclerview_resources",
]
custom_package = "android.support.design"
}
diff --git a/chrome/android/java/res/drawable-hdpi/ic_collapse.png b/chrome/android/java/res/drawable-hdpi/ic_collapsed.png
index 6a08d2a..6a08d2a 100644
--- a/chrome/android/java/res/drawable-hdpi/ic_collapse.png
+++ b/chrome/android/java/res/drawable-hdpi/ic_collapsed.png
Binary files differ
diff --git a/chrome/android/java/res/drawable-hdpi/ic_expand.png b/chrome/android/java/res/drawable-hdpi/ic_expanded.png
index d9a7dc4..d9a7dc4 100644
--- a/chrome/android/java/res/drawable-hdpi/ic_expand.png
+++ b/chrome/android/java/res/drawable-hdpi/ic_expanded.png
Binary files differ
diff --git a/chrome/android/java/res/drawable-mdpi/ic_collapse.png b/chrome/android/java/res/drawable-mdpi/ic_collapsed.png
index 94c6b77..94c6b77 100644
--- a/chrome/android/java/res/drawable-mdpi/ic_collapse.png
+++ b/chrome/android/java/res/drawable-mdpi/ic_collapsed.png
Binary files differ
diff --git a/chrome/android/java/res/drawable-mdpi/ic_expand.png b/chrome/android/java/res/drawable-mdpi/ic_expanded.png
index 386af07..386af07 100644
--- a/chrome/android/java/res/drawable-mdpi/ic_expand.png
+++ b/chrome/android/java/res/drawable-mdpi/ic_expanded.png
Binary files differ
diff --git a/chrome/android/java/res/drawable-xhdpi/ic_collapse.png b/chrome/android/java/res/drawable-xhdpi/ic_collapsed.png
index 6e35277..6e35277 100644
--- a/chrome/android/java/res/drawable-xhdpi/ic_collapse.png
+++ b/chrome/android/java/res/drawable-xhdpi/ic_collapsed.png
Binary files differ
diff --git a/chrome/android/java/res/drawable-xhdpi/ic_expand.png b/chrome/android/java/res/drawable-xhdpi/ic_expanded.png
index 95c3a27..95c3a27 100644
--- a/chrome/android/java/res/drawable-xhdpi/ic_expand.png
+++ b/chrome/android/java/res/drawable-xhdpi/ic_expanded.png
Binary files differ
diff --git a/chrome/android/java/res/drawable-xxhdpi/ic_collapse.png b/chrome/android/java/res/drawable-xxhdpi/ic_collapsed.png
index 78e8ca1..78e8ca1 100644
--- a/chrome/android/java/res/drawable-xxhdpi/ic_collapse.png
+++ b/chrome/android/java/res/drawable-xxhdpi/ic_collapsed.png
Binary files differ
diff --git a/chrome/android/java/res/drawable-xxhdpi/ic_expand.png b/chrome/android/java/res/drawable-xxhdpi/ic_expanded.png
index 5844525..5844525 100644
--- a/chrome/android/java/res/drawable-xxhdpi/ic_expand.png
+++ b/chrome/android/java/res/drawable-xxhdpi/ic_expanded.png
Binary files differ
diff --git a/chrome/android/java/res/drawable-xxxhdpi/ic_collapse.png b/chrome/android/java/res/drawable-xxxhdpi/ic_collapsed.png
index fb78a61..fb78a61 100644
--- a/chrome/android/java/res/drawable-xxxhdpi/ic_collapse.png
+++ b/chrome/android/java/res/drawable-xxxhdpi/ic_collapsed.png
Binary files differ
diff --git a/chrome/android/java/res/drawable-xxxhdpi/ic_expand.png b/chrome/android/java/res/drawable-xxxhdpi/ic_expanded.png
index 483f541..483f541 100644
--- a/chrome/android/java/res/drawable-xxxhdpi/ic_expand.png
+++ b/chrome/android/java/res/drawable-xxxhdpi/ic_expanded.png
Binary files differ
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsGroupView.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsGroupView.java
index 9eb2496..9f1f26f 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsGroupView.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsGroupView.java
@@ -71,9 +71,9 @@ public class RecentTabsGroupView extends RelativeLayout {
// Create drawable for expand/collapse arrow.
LevelListDrawable collapseIcon = new LevelListDrawable();
collapseIcon.addLevel(DRAWABLE_LEVEL_COLLAPSED, DRAWABLE_LEVEL_COLLAPSED,
- TintedDrawable.constructTintedDrawable(getResources(), R.drawable.ic_expand));
+ TintedDrawable.constructTintedDrawable(getResources(), R.drawable.ic_expanded));
TintedDrawable collapse =
- TintedDrawable.constructTintedDrawable(getResources(), R.drawable.ic_collapse);
+ TintedDrawable.constructTintedDrawable(getResources(), R.drawable.ic_collapsed);
collapse.setTint(
ApiCompatibilityUtils.getColorStateList(getResources(), R.color.blue_mode_tint));
collapseIcon.addLevel(DRAWABLE_LEVEL_EXPANDED, DRAWABLE_LEVEL_EXPANDED, collapse);
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
index 79d7d9d..ade5d12 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
@@ -1211,10 +1211,13 @@ public class LocationBarLayout extends FrameLayout implements OnClickListener,
setUrlToPageUrl();
}
}
-
+ int id = getSecurityIconResource(securityLevel, !shouldEmphasizeHttpsScheme());
// ImageView#setImageResource is no-op if given resource is the current one.
- mSecurityButton.setImageResource(
- getSecurityIconResource(securityLevel, !shouldEmphasizeHttpsScheme()));
+ if (id == 0) {
+ mSecurityButton.setImageDrawable(null);
+ } else {
+ mSecurityButton.setImageResource(id);
+ }
if (mSecurityIconType == securityLevel) return;
mSecurityIconType = securityLevel;
@@ -1284,7 +1287,7 @@ public class LocationBarLayout extends FrameLayout implements OnClickListener,
mNavigationButton.setImageResource(R.drawable.ic_omnibox_magnifier);
break;
case EMPTY:
- mNavigationButton.setImageResource(0);
+ mNavigationButton.setImageDrawable(null);
break;
default:
assert false;
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java
index 32cd4e9..3942175 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleCategoryPreferences.java
@@ -250,7 +250,7 @@ public class SingleCategoryPreferences extends PreferenceFragment
// Set the title and arrow icons for the header.
allowedGroup.setGroupTitle(resourceId, numAllowed);
TintedDrawable icon = TintedDrawable.constructTintedDrawable(getResources(),
- mAllowListExpanded ? R.drawable.ic_expand : R.drawable.ic_collapse);
+ mAllowListExpanded ? R.drawable.ic_expanded : R.drawable.ic_collapsed);
allowedGroup.setExpanded(mAllowListExpanded);
allowedGroup.setIcon(icon);
}
@@ -267,7 +267,7 @@ public class SingleCategoryPreferences extends PreferenceFragment
// Set the title and arrow icons for the header.
blockedGroup.setGroupTitle(R.string.website_settings_blocked_group_heading, numBlocked);
TintedDrawable icon = TintedDrawable.constructTintedDrawable(getResources(),
- mBlockListExpanded ? R.drawable.ic_expand : R.drawable.ic_collapse);
+ mBlockListExpanded ? R.drawable.ic_expanded : R.drawable.ic_collapsed);
blockedGroup.setExpanded(mBlockListExpanded);
blockedGroup.setIcon(icon);
}
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
index df87a09..49b02da 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
@@ -367,9 +367,14 @@ public class CustomTabToolbar extends ToolbarLayout implements LocationBar,
if (securityLevel == ConnectionSecurityLevel.NONE) {
mAnimDelegate.hideSecurityButton();
} else {
+ int id = LocationBarLayout.getSecurityIconResource(
+ securityLevel, !shouldEmphasizeHttpsScheme());
// ImageView#setImageResource is no-op if given resource is the current one.
- mSecurityButton.setImageResource(LocationBarLayout.getSecurityIconResource(
- securityLevel, !shouldEmphasizeHttpsScheme()));
+ if (id == 0) {
+ mSecurityButton.setImageDrawable(null);
+ } else {
+ mSecurityButton.setImageResource(id);
+ }
mAnimDelegate.showSecurityButton();
}
mUrlBar.emphasizeUrl();