From b18a6cefb3ceb39c81fbdc9c1b7c06181133fc8d Mon Sep 17 00:00:00 2001 From: brave-builds Date: Wed, 7 Oct 2020 14:25:45 +0000 Subject: [PATCH] Uplift of #6795 (squashed) to release --- .../res/layout/touch_to_fill_header_item.xml | 36 +++++++++++++++++++ .../internal/java/res/values/dimens.xml | 35 ++++++++++++++++++ build/commands/lib/util.js | 5 ++- 3 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 browser/touch_to_fill/android/internal/java/res/layout/touch_to_fill_header_item.xml create mode 100644 browser/touch_to_fill/android/internal/java/res/values/dimens.xml diff --git a/browser/touch_to_fill/android/internal/java/res/layout/touch_to_fill_header_item.xml b/browser/touch_to_fill/android/internal/java/res/layout/touch_to_fill_header_item.xml new file mode 100644 index 000000000000..ec5c2aa74974 --- /dev/null +++ b/browser/touch_to_fill/android/internal/java/res/layout/touch_to_fill_header_item.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + diff --git a/browser/touch_to_fill/android/internal/java/res/values/dimens.xml b/browser/touch_to_fill/android/internal/java/res/values/dimens.xml new file mode 100644 index 000000000000..36f127c55c4d --- /dev/null +++ b/browser/touch_to_fill/android/internal/java/res/values/dimens.xml @@ -0,0 +1,35 @@ + + + + + 24dp + 16dp + + + 170dp + + + 80dp + + + 60dp + + + 16dp + 8dp + diff --git a/build/commands/lib/util.js b/build/commands/lib/util.js index 4ee7daea9b7f..5cc60c993b28 100755 --- a/build/commands/lib/util.js +++ b/build/commands/lib/util.js @@ -340,13 +340,16 @@ const util = { const androidResTemplateDest = path.join(config.srcDir, 'chrome', 'android', 'java', 'res_template') const androidContentPublicResSource = path.join(config.braveCoreDir, 'content', 'public', 'android', 'java', 'res') const androidContentPublicResDest = path.join(config.srcDir, 'content', 'public', 'android', 'java', 'res') + const androidTouchtoFillResSource = path.join(config.braveCoreDir, 'browser', 'touch_to_fill', 'android', 'internal', 'java', 'res') + const androidTouchtoFillResDest = path.join(config.srcDir, 'chrome', 'browser', 'touch_to_fill', 'android', 'internal', 'java', 'res') // Mapping for copying Brave's Android resource into chromium folder. const copyAndroidResourceMapping = { [androidIconSource]: [androidIconDest], [androidResSource]: [androidResDest], [androidResTemplateSource]: [androidResTemplateDest], - [androidContentPublicResSource]: [androidContentPublicResDest] + [androidContentPublicResSource]: [androidContentPublicResDest], + [androidTouchtoFillResSource]: [androidTouchtoFillResDest] } console.log('copy Android app icons and app resources')