diff --git a/mobile/android/base/DoorHangerPopup.java b/mobile/android/base/DoorHangerPopup.java
index 7b30a2d9a364..0d5448a00ad2 100644
--- a/mobile/android/base/DoorHangerPopup.java
+++ b/mobile/android/base/DoorHangerPopup.java
@@ -115,8 +115,8 @@ public class DoorHangerPopup extends AnchoredPopup
config.setButtons(json.getJSONArray("buttons"));
config.setOptions(json.getJSONObject("options"));
final String typeString = json.optString("category");
- if (DoorHanger.Type.PASSWORD.toString().equals(typeString)) {
- config.setType(DoorHanger.Type.PASSWORD);
+ if (DoorHanger.Type.LOGIN.toString().equals(typeString)) {
+ config.setType(DoorHanger.Type.LOGIN);
}
return config;
diff --git a/mobile/android/base/moz.build b/mobile/android/base/moz.build
index 22b1d6591894..cdb20f296f60 100644
--- a/mobile/android/base/moz.build
+++ b/mobile/android/base/moz.build
@@ -505,6 +505,7 @@ gbjar.sources += [
'widget/GeckoSwipeRefreshLayout.java',
'widget/GeckoViewFlipper.java',
'widget/IconTabWidget.java',
+ 'widget/LoginDoorHanger.java',
'widget/ResizablePathDrawable.java',
'widget/SquaredImageView.java',
'widget/SwipeDismissListViewTouchListener.java',
diff --git a/mobile/android/base/resources/layout/doorhanger.xml b/mobile/android/base/resources/layout/doorhanger.xml
index 07615ee1682c..be3c4ab88a3b 100644
--- a/mobile/android/base/resources/layout/doorhanger.xml
+++ b/mobile/android/base/resources/layout/doorhanger.xml
@@ -20,7 +20,7 @@
android:focusable="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textAppearance="@style/TextAppearance.Widget.DoorHanger.Medium"/>
+ android:textAppearance="@style/TextAppearance.DoorHanger.Medium"/>
diff --git a/mobile/android/base/resources/layout/login_doorhanger.xml b/mobile/android/base/resources/layout/login_doorhanger.xml
new file mode 100644
index 000000000000..e0d4bc210298
--- /dev/null
+++ b/mobile/android/base/resources/layout/login_doorhanger.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/mobile/android/base/resources/values/dimens.xml b/mobile/android/base/resources/values/dimens.xml
index 27407c82adf2..dd81e54f6775 100644
--- a/mobile/android/base/resources/values/dimens.xml
+++ b/mobile/android/base/resources/values/dimens.xml
@@ -100,6 +100,10 @@
15dp
10dp
7dp
+ 5dp
+ 20dp
+ 30dp
+ 60dp
6dp
21dp
diff --git a/mobile/android/base/resources/values/styles.xml b/mobile/android/base/resources/values/styles.xml
index 52c0ea5cf00b..da1ad0c436c1 100644
--- a/mobile/android/base/resources/values/styles.xml
+++ b/mobile/android/base/resources/values/styles.xml
@@ -410,14 +410,21 @@
- ?android:attr/textColorHint
-
-
+
+
+
+