]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
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 4f15fbc32adc8b85cae1cdcfb67be1f77f3de57c..48558dcba18ac27d130a35a288b3f9df22895033 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: