Stop RemoteDPC from crashing. am: bdc366a808

Original change: https://googleplex-android-review.googlesource.com/c/platform/external/connectedappssdk/+/18580924

Change-Id: I501b73db54bc32642a10a0a2be8473dfafeb68b6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/DispatcherGenerator.java b/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/DispatcherGenerator.java
index a4f8ef6..f8733d1 100644
--- a/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/DispatcherGenerator.java
+++ b/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/DispatcherGenerator.java
@@ -184,7 +184,7 @@
         ArrayTypeName.of(byte.class));
     methodCode.addStatement("throwableParcel.recycle()");
 
-    methodCode.addStatement("$T.throwInBackground(e)", BACKGROUND_EXCEPTION_THROWER_CLASSNAME);
+    // methodCode.addStatement("$T.throwInBackground(e)", BACKGROUND_EXCEPTION_THROWER_CLASSNAME);
 
     methodCode.addStatement("return throwableBytes");
     methodCode.nextControlFlow("catch ($T e)", Error.class);
@@ -199,7 +199,7 @@
             ArrayTypeName.of(byte.class));
     methodCode.addStatement("throwableParcel.recycle()");
 
-    methodCode.addStatement("$T.throwInBackground(e)", BACKGROUND_EXCEPTION_THROWER_CLASSNAME);
+    // methodCode.addStatement("$T.throwInBackground(e)", BACKGROUND_EXCEPTION_THROWER_CLASSNAME);
 
     methodCode.addStatement("return throwableBytes");
     methodCode.endControlFlow();