-Changed Rx exception handling to swallow undeliverable exceptions by default.

This commit is contained in:
John Zhen Mo 2018-02-21 10:42:54 -08:00
parent 1a92dfb019
commit 34f19c4268
3 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ public class DebugApp extends App {
@Override
protected boolean isDisposedRxExceptionsReported() {
return PreferenceManager.getDefaultSharedPreferences(this)
.getBoolean(getString(R.string.allow_disposed_exceptions_key), true);
.getBoolean(getString(R.string.allow_disposed_exceptions_key), false);
}
@Override

View file

@ -210,6 +210,6 @@ public class App extends Application {
}
protected boolean isDisposedRxExceptionsReported() {
return true;
return false;
}
}

View file

@ -11,7 +11,7 @@
android:summary="@string/enable_leak_canary_summary"/>
<SwitchPreference
android:defaultValue="true"
android:defaultValue="false"
android:key="@string/allow_disposed_exceptions_key"
android:title="@string/enable_disposed_exceptions_title"
android:summary="@string/enable_disposed_exceptions_summary"/>