From ee6013dfd1177a09be024cb0e86186f2873a2229 Mon Sep 17 00:00:00 2001 From: Gabriele M Date: Wed, 19 Jul 2017 21:11:47 +0200 Subject: [PATCH] Allow to copy the URL of the updates --- res/menu/menu_action_mode.xml | 5 +++++ res/values/strings.xml | 4 ++++ src/org/lineageos/updater/UpdatesListAdapter.java | 8 ++++++++ src/org/lineageos/updater/misc/Utils.java | 11 +++++++++++ 4 files changed, 28 insertions(+) diff --git a/res/menu/menu_action_mode.xml b/res/menu/menu_action_mode.xml index 88ac70e1..4b27c3c8 100644 --- a/res/menu/menu_action_mode.xml +++ b/res/menu/menu_action_mode.xml @@ -7,4 +7,9 @@ android:title="@string/menu_delete_update" android:visible="false" app:showAsAction="ifRoom" /> + diff --git a/res/values/strings.xml b/res/values/strings.xml index 59ebce72..25d62e1f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -50,6 +50,7 @@ Refresh Auto updates check Delete + Copy URL Checking for updates New updates found @@ -85,6 +86,9 @@ You are about to upgrade to %1$s.\n\nIf you press %2$s, the device will restart itself in recovery mode to install the update.\n\nNote: This feature requires a compatible Recovery or updates will need to be installed manually. You are about to upgrade to %1$s.\n\nIf you press %2$s, the device will begin installing in the background.\n\nOnce completed, you will be prompted to reboot. + Download URL + URL Copied + 1 second %d seconds diff --git a/src/org/lineageos/updater/UpdatesListAdapter.java b/src/org/lineageos/updater/UpdatesListAdapter.java index 393df47b..7f722c81 100644 --- a/src/org/lineageos/updater/UpdatesListAdapter.java +++ b/src/org/lineageos/updater/UpdatesListAdapter.java @@ -428,6 +428,7 @@ public class UpdatesListAdapter extends RecyclerView.Adapter