Skip to content

Commit 7764b9f

Browse files
committed
Added "Crash the App" link in the dev settings. | #111.
1 parent 7b2b5be commit 7764b9f

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

FlowCrypt/src/main/java/com/flowcrypt/email/FlowCryptApplication.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import com.squareup.leakcanary.LeakCanary;
1616

1717
import org.acra.ACRA;
18-
import org.acra.ReportingInteractionMode;
1918
import org.acra.annotation.ReportsCrashes;
2019
import org.acra.sender.HttpSender;
2120

@@ -30,10 +29,7 @@
3029
@ReportsCrashes(
3130
formUri = "https://api.cryptup.io/help/acra",
3231
httpMethod = HttpSender.Method.POST,
33-
reportType = HttpSender.Type.JSON,
34-
mailTo = Constants.ANDROID_DEVELOPER_SUPPORT_EMAIL,
35-
mode = ReportingInteractionMode.TOAST,
36-
resToastText = R.string.application_crashed)
32+
reportType = HttpSender.Type.JSON)
3733
public class FlowCryptApplication extends Application {
3834

3935
@Override

FlowCrypt/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,5 @@
193193
<string name="template_email_alredy_added">The email \"%1$s\" already added!</string>
194194
<string name="settings_not_valid">The settings is not valid</string>
195195
<string name="skip_setup">Skip setup</string>
196+
<string name="crash_the_app">Crash the App</string>
196197
</resources>

FlowCrypt/src/main/res/xml/dev_preferences.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,10 @@
1515
<CheckBoxPreference
1616
android:key="@string/preferences_key_is_detect_memory_leak_enable"
1717
android:title="@string/preferences_title_enable_detect_memory_leak" />
18+
<Preference android:title="@string/crash_the_app">
19+
<intent
20+
android:targetClass="com.flowcrypt.email"
21+
android:targetPackage="@string/application_id" />
22+
</Preference>
1823
</PreferenceCategory>
1924
</PreferenceScreen>

0 commit comments

Comments
 (0)