TestingCamera: Video Record Size starts correct

Instead of "Default", Video Record Size now reflects actual record
resolution before any other selections are made.

Change-Id: Iacc3d1bd5cf69e30c76f270778d14b045f25df70
diff --git a/apps/TestingCamera/src/com/android/testingcamera/TestingCamera.java b/apps/TestingCamera/src/com/android/testingcamera/TestingCamera.java
index 1ca0e87..1a7a193 100644
--- a/apps/TestingCamera/src/com/android/testingcamera/TestingCamera.java
+++ b/apps/TestingCamera/src/com/android/testingcamera/TestingCamera.java
@@ -430,10 +430,10 @@
                 new AdapterView.OnItemSelectedListener() {
         public void onItemSelected(AdapterView<?> parent,
                         View view, int pos, long id) {
-            if (pos == mCamcorderProfile) return;
-
-            log("Setting camcorder profile to " + ((TextView)view).getText());
-            mCamcorderProfile = pos;
+            if (pos != mCamcorderProfile) {
+                log("Setting camcorder profile to " + ((TextView)view).getText());
+                mCamcorderProfile = pos;
+            }
 
             // Additionally change video recording size to match
             mVideoRecordSize = 0; // "default", in case it's not found
@@ -562,6 +562,9 @@
         updateVideoRecordSize(mCameraId);
         updateVideoFrameRate(mCameraId);
 
+        // Trigger updating video record size to match camcorder profile
+        mCamcorderProfileSpinner.setSelection(mCamcorderProfile);
+
         // Update parameters based on above updates
         mCamera.setParameters(mParams);