mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 06:43:00 +00:00 
			
		
		
		
	-Changed Rx exception handling to swallow undeliverable exceptions by default.
This commit is contained in:
		| @@ -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"/> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 John Zhen Mo
					John Zhen Mo