diff --git a/FCL/src/main/AndroidManifest.xml b/FCL/src/main/AndroidManifest.xml index 42d11fc7e..bb0e695ab 100644 --- a/FCL/src/main/AndroidManifest.xml +++ b/FCL/src/main/AndroidManifest.xml @@ -118,17 +118,23 @@ android:enabled="true"/> - + + + diff --git a/FCL/src/main/java/com/tungsten/fcl/activity/JVMCrashActivity.java b/FCL/src/main/java/com/tungsten/fcl/activity/JVMCrashActivity.java index 6d0fdb64a..0a69fa9b5 100644 --- a/FCL/src/main/java/com/tungsten/fcl/activity/JVMCrashActivity.java +++ b/FCL/src/main/java/com/tungsten/fcl/activity/JVMCrashActivity.java @@ -278,11 +278,10 @@ public void onClick(View v) { File file = File.createTempFile("fcl-latest", ".log"); FileUtils.writeText(file, error.getText().toString()); Uri uri = FileProvider.getUriForFile(this, getString(com.tungsten.fcllibrary.R.string.file_browser_provider), file); - intent.setType("*/*"); + intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_STREAM, uri); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - intent.addCategory(Intent.CATEGORY_DEFAULT); startActivity(Intent.createChooser(intent, getString(com.tungsten.fcllibrary.R.string.crash_reporter_share))); } catch (Exception e) { LOG.log(Level.INFO, "Share error: " + e); diff --git a/FCLLibrary/src/main/java/com/tungsten/fcllibrary/crash/CrashReportActivity.java b/FCLLibrary/src/main/java/com/tungsten/fcllibrary/crash/CrashReportActivity.java index fe6f3bc96..1649f91c6 100644 --- a/FCLLibrary/src/main/java/com/tungsten/fcllibrary/crash/CrashReportActivity.java +++ b/FCLLibrary/src/main/java/com/tungsten/fcllibrary/crash/CrashReportActivity.java @@ -75,11 +75,10 @@ public void onClick(View view) { File file = File.createTempFile("crash_report", ".txt"); Files.write(file.toPath(), CrashReporter.getAllErrorDetailsFromIntent(this, getIntent()).getBytes(StandardCharsets.UTF_8)); Uri uri = FileProvider.getUriForFile(this, getString(R.string.file_browser_provider), file); - intent.setType("*/*"); + intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_STREAM, uri); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - intent.addCategory(Intent.CATEGORY_DEFAULT); startActivity(Intent.createChooser(intent, getString(R.string.crash_reporter_share))); } catch (IOException e) { e.printStackTrace(); diff --git a/FCLLibrary/src/main/res/values/strings.xml b/FCLLibrary/src/main/res/values/strings.xml index fdeb78d13..01ba97e27 100644 --- a/FCLLibrary/src/main/res/values/strings.xml +++ b/FCLLibrary/src/main/res/values/strings.xml @@ -1,6 +1,7 @@ com.tungsten.fcl.provider + com.tungsten.fcl.document.provider File Browser Back Exit