1
0
Fork 0
mirror of https://github.com/KokaKiwi/BarInsta synced 2026-03-05 20:11:36 +00:00

Merge branch 'master' into task/add-favourites

This commit is contained in:
Ammar Githam 2020-09-19 04:26:48 +09:00
commit 9144110564
43 changed files with 1751 additions and 319 deletions

View file

@ -69,6 +69,8 @@ public final class LocaleUtils {
if (appLanguageIndex == 8) return "pl";
if (appLanguageIndex == 9) return "tr";
if (appLanguageIndex == 10) return "pt";
if (appLanguageIndex == 11) return "fa";
if (appLanguageIndex == 12) return "mk";
return null;
}

View file

@ -159,7 +159,7 @@ public final class CrashReporter implements Thread.UncaughtExceptionHandler {
if ((errorFileList != null && errorFileList.length > 0) || sendZipsOnly) {
final StringBuilder errorStringBuilder;
if (sendZipsOnly) errorStringBuilder = new StringBuilder("So... what happened?\n\n");
if (sendZipsOnly) errorStringBuilder = new StringBuilder("(Not a crash)\n\n");
else {
errorStringBuilder = new StringBuilder("\r\n\r\n");
final int maxSendMail = 5;
@ -187,7 +187,7 @@ public final class CrashReporter implements Thread.UncaughtExceptionHandler {
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION)
.putExtra(Intent.EXTRA_EMAIL, new String[]{email})
.putExtra(Intent.EXTRA_STREAM, FileProvider.getUriForFile(application, BuildConfig.APPLICATION_ID + ".provider", crashLogsZip))
.putExtra(Intent.EXTRA_SUBJECT, "InstaGrabber Crash Report")
.putExtra(Intent.EXTRA_SUBJECT, "Barinsta Crash Report")
.putExtra(Intent.EXTRA_TEXT, errorStringBuilder.toString()), "Select an email app to send crash logs"));
}
} catch (final Exception e) {