Decrypt protect content inline

This commit is contained in:
M66B
2022-10-22 19:36:11 +02:00
parent 52f4f2acf9
commit 4a62e23cc4
5 changed files with 322 additions and 5 deletions

View File

@@ -5854,6 +5854,16 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
Log.i("Opening uri=" + uri + " title=" + title);
uri = Uri.parse(uri.toString().replaceAll("\\s+", ""));
if (StyleHelper.isProtectedContent(uri)) {
Bundle args = new Bundle();
args.putParcelable("uri", uri);
FragmentDialogBase dialog = new StyleHelper.FragmentDialogDecrypt();
dialog.setArguments(args);
dialog.show(parentFragment.getParentFragmentManager(), "decrypt");
return true;
}
try {
String url = uri.getQueryParameter("url");
if (!TextUtils.isEmpty(url)) {