Merge branch 'improve-add-repo-from-clipboard' into 'master'
Improve adding repos from the clipboard See merge request fdroid/fdroidclient!811
This commit is contained in:
commit
9a8eb5d495
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user