-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
|
@Override
|
||||||
protected boolean isDisposedRxExceptionsReported() {
|
protected boolean isDisposedRxExceptionsReported() {
|
||||||
return PreferenceManager.getDefaultSharedPreferences(this)
|
return PreferenceManager.getDefaultSharedPreferences(this)
|
||||||
.getBoolean(getString(R.string.allow_disposed_exceptions_key), true);
|
.getBoolean(getString(R.string.allow_disposed_exceptions_key), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -210,6 +210,6 @@ public class App extends Application {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isDisposedRxExceptionsReported() {
|
protected boolean isDisposedRxExceptionsReported() {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
android:summary="@string/enable_leak_canary_summary"/>
|
android:summary="@string/enable_leak_canary_summary"/>
|
||||||
|
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:defaultValue="true"
|
android:defaultValue="false"
|
||||||
android:key="@string/allow_disposed_exceptions_key"
|
android:key="@string/allow_disposed_exceptions_key"
|
||||||
android:title="@string/enable_disposed_exceptions_title"
|
android:title="@string/enable_disposed_exceptions_title"
|
||||||
android:summary="@string/enable_disposed_exceptions_summary"/>
|
android:summary="@string/enable_disposed_exceptions_summary"/>
|
||||||
|
|
Loading…
Reference in a new issue