fix bug with automatic addition of URI scheme for owncloud files, improve input types to avoid automatic trailing spaces when using keyboard suggestions

This commit is contained in:
Philipp Crocoll
2018-06-02 06:57:00 +02:00
parent 56b9b878f8
commit 28a60f5243
3 changed files with 4 additions and 2 deletions

View File

@@ -216,7 +216,7 @@ namespace keepass2android
string user = dlgContents.FindViewById<EditText>(Resource.Id.http_user).Text;
string password = dlgContents.FindViewById<EditText>(Resource.Id.http_password).Text;
string scheme = defaultPath.Substring(defaultPath.IndexOf(_schemeSeparator, StringComparison.Ordinal));
string scheme = defaultPath.Substring(0,defaultPath.IndexOf(_schemeSeparator, StringComparison.Ordinal));
if (host.Contains(_schemeSeparator) == false)
host = scheme + _schemeSeparator + host;
string httpPath = new Keepass2android.Javafilestorage.WebDavStorage(null).BuildFullPath(WebDavFileStorage.Owncloud2Webdav(host), user,

View File

@@ -45,6 +45,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:inputType="textWebEmailAddress"
android:text=""
android:hint="@string/hint_username" />

View File

@@ -17,7 +17,7 @@
android:singleLine="true"
android:layout_weight="1"
android:text=""
android:inputType="textNoSuggestions"
android:inputType="textWebEmailAddress"
android:hint="@string/hint_owncloud_url" />
</LinearLayout>
@@ -27,6 +27,7 @@
android:layout_height="wrap_content"
android:singleLine="true"
android:text=""
android:inputType="textWebEmailAddress"
android:hint="@string/hint_username" />
<EditText