diff --git a/res/drawable/ic_info.xml b/res/drawable/ic_info.xml new file mode 100644 index 0000000..cf53e14 --- /dev/null +++ b/res/drawable/ic_info.xml @@ -0,0 +1,9 @@ + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index 7522a24..16cbc5a 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -87,6 +87,7 @@ Pause download Resume download Install update + Show information Delete file Delete the selected update file? @@ -121,4 +122,8 @@ You\'re about to download an update package using mobile data which is likely going to cause high data usage. Would you like to proceed? Do not show again Mobile data warning + + Update blocked + This update cannot be installed using the updater app. Please read %1$s for more information. + http://wiki.lineageos.org/upgrading.html diff --git a/src/org/lineageos/updater/UpdatesListAdapter.java b/src/org/lineageos/updater/UpdatesListAdapter.java index ca12244..5cb70df 100644 --- a/src/org/lineageos/updater/UpdatesListAdapter.java +++ b/src/org/lineageos/updater/UpdatesListAdapter.java @@ -22,7 +22,10 @@ import android.support.design.widget.Snackbar; import android.support.v7.app.AlertDialog; import android.support.v7.view.ActionMode; import android.support.v7.widget.RecyclerView; +import android.text.SpannableString; import android.text.format.Formatter; +import android.text.method.LinkMovementMethod; +import android.text.util.Linkify; import android.util.Log; import android.util.TypedValue; import android.view.LayoutInflater; @@ -68,7 +71,8 @@ public class UpdatesListAdapter extends RecyclerView.Adapter