Commit 9a8eb5d4 authored by Hans-Christoph Steiner's avatar Hans-Christoph Steiner

Merge branch 'improve-add-repo-from-clipboard' into 'master'

Improve adding repos from the clipboard

See merge request fdroid/fdroidclient!811
parents ada263fe 94e441cc
Pipeline #54204975 passed with stages
in 44 minutes and 43 seconds
......@@ -182,6 +182,14 @@ public class ManageReposActivity extends AppCompatActivity
ClipData data = clipboardManager.getPrimaryClip();
if (data.getItemCount() > 0) {
text = data.getItemAt(0).getText();
if (text == null) {
Uri uri = data.getItemAt(0).getUri();
if (uri != null) {
text = uri.toString();
}
}
}
}
return text != null ? text.toString() : null;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment