camera: Fix camera startup racing with orientation change

 * When launching the camera via the lock screen widget on some devices,
   the orientation change shows up late, and we get an
   onConfigurationChanged in the middle of setting up the textures,
   causing an infinite wait in the UI thread.
 * Ignore these events until the preview is up and running, orientation
   will be checked later.

Change-Id: Icf5013e039324d617acd1c1108d37c655776c1c3
Gallery2: Fix detail dialog image count

This commit fixes the displayed image index which needs
to be count up by 1 to make sense for the user.

Before: http://goo.gl/BeRp8Z
After:  http://goo.gl/N3xvX6

Change-Id: Ib8d782188207d9ee7444316e8426b8215c67e594