diff --git a/app/src/main/java/acr/browser/lightning/view/LightningWebClient.java b/app/src/main/java/acr/browser/lightning/view/LightningWebClient.java index 768faac..5052429 100644 --- a/app/src/main/java/acr/browser/lightning/view/LightningWebClient.java +++ b/app/src/main/java/acr/browser/lightning/view/LightningWebClient.java @@ -26,6 +26,7 @@ import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.EditText; import android.widget.LinearLayout; +import android.widget.TextView; import java.io.ByteArrayInputStream; import java.net.URISyntaxException; @@ -127,11 +128,14 @@ public class LightningWebClient extends WebViewClient { final String host, final String realm) { AlertDialog.Builder builder = new AlertDialog.Builder(mActivity); + final TextView realmLabel = new TextView(mActivity); final EditText name = new EditText(mActivity); final EditText password = new EditText(mActivity); LinearLayout passLayout = new LinearLayout(mActivity); passLayout.setOrientation(LinearLayout.VERTICAL); + realmLabel.setText(mActivity.getString(R.string.label_realm, realm)); + passLayout.addView(realmLabel); passLayout.addView(name); passLayout.addView(password); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c2bc60b..c6c4fd1 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -143,6 +143,7 @@ Allow Don\'t Allow Sign In + Server message: %s Username Password Search Suggestions