Adopt the new error handling mechanism in portability.
Show camera fatal dialog to guide users exiting the app when
1) camera framework throws RTE or
2) DispatchThread job is timeout.
If users hit home button while error dialog is shown, just exit
the app.
Bug: 16189216
Change-Id: Ia0f1c64d452735ec62549f50ab62646d8d873c65
diff --git a/src/com/android/camera/debug/DebugCameraProxy.java b/src/com/android/camera/debug/DebugCameraProxy.java
index cf6952c..b847d87 100644
--- a/src/com/android/camera/debug/DebugCameraProxy.java
+++ b/src/com/android/camera/debug/DebugCameraProxy.java
@@ -66,6 +66,12 @@
}
@Override
+ public CameraAgent getAgent() {
+ log("getAgent");
+ return mProxy.getAgent();
+ }
+
+ @Override
public CameraCapabilities getCapabilities() {
log("getCapabilities");
return mProxy.getCapabilities();