Removed unused parentheses

This commit is contained in:
Jeremie 2017-04-19 14:28:51 +02:00 committed by GitHub
parent 8a553db96c
commit 8be8703398

View File

@ -98,7 +98,7 @@ public class FileOpener2 extends CordovaPlugin {
try { try {
Uri path = Uri.fromFile(file); Uri path = Uri.fromFile(file);
Intent intent = new Intent(Intent.ACTION_VIEW); Intent intent = new Intent(Intent.ACTION_VIEW);
if(Build.VERSION.SDK_INT >= 23 && !(contentType.equals("application/vnd.android.package-archive"))){ if(Build.VERSION.SDK_INT >= 23 && !contentType.equals("application/vnd.android.package-archive")){
Context context = cordova.getActivity().getApplicationContext(); Context context = cordova.getActivity().getApplicationContext();
path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".opener.provider", file); path = FileProvider.getUriForFile(context, cordova.getActivity().getPackageName() + ".opener.provider", file);