
Previously it would only compare the details of a new repo to existing ones if the new repo came via an intent. Now it does it whenever you change the text in the new repo dialog (shouldn't be too much of a performance hit, it isn't doing very much). The things it (still) doesn't do is: * verify that the url looks like a url * sanitize the newly input uri and compare it to sanitized saved repos The second point means that you can end up with: http://10.0.1.50/ and http://10.0.1.50 both in the list. I'm going to log an issue for this, because it should be fixed, but doesn't need to hold this up.
77 lines
2.8 KiB
XML
77 lines
2.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="6dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/add_repo_form"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/repo_add_url" />
|
|
|
|
<EditText
|
|
android:id="@+id/edit_uri"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="textUri"
|
|
android:maxLines="2"
|
|
android:text="@string/https" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/repo_add_fingerprint" />
|
|
|
|
<EditText
|
|
android:id="@+id/edit_fingerprint"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:digits="0123456789ABCDEFabcedf: "
|
|
android:inputType="textNoSuggestions"
|
|
android:maxLines="3"
|
|
android:typeface="monospace" />
|
|
|
|
<TextView
|
|
android:id="@+id/overwrite_message"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="10dp"
|
|
tools:text="This repo is already setup, this will add new key information."/>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:padding="10dp"
|
|
android:textSize="16sp"
|
|
android:id="@+id/text_searching_for_repo"
|
|
android:gravity="center"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:text="Searching for repository at\nhttps://www.example.com/fdroid/repo/" />
|
|
|
|
</RelativeLayout><!--
|
|
* Copyright (C) 2009 Roberto Jacinto
|
|
* roberto.jacinto@caixamagica.pt
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
-->
|