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:
@@ -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,
|
||||
|
||||
@@ -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" />
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user