Fixed TNEF FAQ ref

This commit is contained in:
M66B
2020-10-17 11:44:47 +02:00
parent 293142793a
commit a979846b79
2 changed files with 7 additions and 15 deletions

View File

@@ -396,7 +396,10 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
super.startActivityForResult(intent, requestCode);
} catch (ActivityNotFoundException ex) {
Log.w(ex);
ToastEx.makeText(this, getString(R.string.title_no_viewer, intent), Toast.LENGTH_LONG).show();
if (Helper.isTnef(intent.getType()))
Helper.viewFAQ(this, 155);
else
ToastEx.makeText(this, getString(R.string.title_no_viewer, intent), Toast.LENGTH_LONG).show();
} catch (Throwable ex) {
Log.e(ex);
ToastEx.makeText(this, Log.formatThrowable(ex), Toast.LENGTH_LONG).show();