Use the default chooser options for the Open With menu items. https://redmine.stoutn...
authorSoren Stoutner <soren@stoutner.com>
Fri, 8 Feb 2019 20:42:17 +0000 (13:42 -0700)
committerSoren Stoutner <soren@stoutner.com>
Fri, 8 Feb 2019 20:42:17 +0000 (13:42 -0700)
app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java

index 4f15fbc..48558dc 100644 (file)
@@ -2934,7 +2934,7 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook
                 openWithAppIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 
                 // Show the chooser.
-                startActivity(Intent.createChooser(openWithAppIntent, getString(R.string.open_with)));
+                startActivity(openWithAppIntent);
                 return true;
 
             case R.id.open_with_browser:
@@ -2948,7 +2948,7 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook
                 openWithBrowserIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
 
                 // Show the chooser.
-                startActivity(Intent.createChooser(openWithBrowserIntent, getString(R.string.open_with)));
+                startActivity(openWithBrowserIntent);
                 return true;
 
             case R.id.add_to_homescreen: