Added support to no/viewer dialog

This commit is contained in:
M66B 2022-06-06 14:33:53 +02:00
parent a132338002
commit 0371a8f8b2
1 changed files with 8 additions and 1 deletions

View File

@ -1191,10 +1191,17 @@ public class Helper {
AlertDialog.Builder builder = new AlertDialog.Builder(context)
.setView(dview)
.setNeutralButton(R.string.menu_faq, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Uri uri = Helper.getSupportUri(context, "Report:viewer");
view(context, uri, true);
}
})
.setNegativeButton(android.R.string.cancel, null);
if (hasPlayStore(context) && !TextUtils.isEmpty(extension)) {
builder.setNeutralButton(R.string.title_no_viewer_search, new DialogInterface.OnClickListener() {
builder.setPositiveButton(R.string.title_no_viewer_search, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
try {