Bug 1500560 - Add Resource ID for `LocationView` URL bar. r=snorp
authorEmily Toop <etoop@mozilla.com>
Wed, 07 Nov 2018 17:22:46 +0000
changeset 445121 310d3487946fbf4849866787b6313e955d3183bc
parent 445120 d895d29dbf5eb0bef1693d08c7a2e6da002c78f1
child 445122 cdf27890e172a78c1a813126b6e7de4bad1d43d1
push id72585
push useretoop@mozilla.com
push dateThu, 08 Nov 2018 11:02:21 +0000
treeherderautoland@310d3487946f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp
bugs1500560
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1500560 - Add Resource ID for `LocationView` URL bar. r=snorp Differential Revision: https://phabricator.services.mozilla.com/D11036
mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
mobile/android/geckoview_example/src/main/res/values/ids.xml
--- a/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
+++ b/mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
@@ -95,16 +95,17 @@ public class GeckoViewActivity extends A
               " - application start");
 
         setContentView(R.layout.geckoview_activity);
         mGeckoView = (GeckoView) findViewById(R.id.gecko_view);
 
         setSupportActionBar((Toolbar)findViewById(R.id.toolbar));
 
         mLocationView = new LocationView(this);
+        mLocationView.setId(R.id.url_bar);
         getSupportActionBar().setCustomView(mLocationView,
                 new ActionBar.LayoutParams(ActionBar.LayoutParams.MATCH_PARENT,
                         ActionBar.LayoutParams.WRAP_CONTENT));
         getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
 
         mUseMultiprocess = getIntent().getBooleanExtra(USE_MULTIPROCESS_EXTRA, true);
         mFullAccessibilityTree = getIntent().getBooleanExtra(FULL_ACCESSIBILITY_TREE_EXTRA, true);
         mProgressView = (ProgressBar) findViewById(R.id.page_progress);
new file mode 100644
--- /dev/null
+++ b/mobile/android/geckoview_example/src/main/res/values/ids.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <item name="url_bar" type="id"/>
+</resources>