-Changed Rx exception handling to swallow undeliverable exceptions by default.
This commit is contained in:
parent
1a92dfb019
commit
34f19c4268
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -210,6 +210,6 @@ public class App extends Application {
|
|||
}
|
||||
|
||||
protected boolean isDisposedRxExceptionsReported() {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"/>
|
||||
|
|
Loading…
Reference in a new issue