History log of /packages/apps/LegacyCamera/src/com/android/camera/ui/InLineSettingSwitch.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4da02059e884dbef897f410861329acad96d46d4 06-Dec-2011 Wu-cheng Li <wuchengli@google.com> Fix crash after restoring defaults.

After restoring defaults in camcorder mode, the indicator
control calls onSharedPreferenceChanged if record location
is on. onSharedPreferenceChanged is also called in the end
of restorePreferences.

With two onSharedPreferenceChanged calls in a row, the first
call notices effects have been disabled, and begins the
effect pipeline teardown in the background thread. Normally,
this would conclude in a few hundred milliseconds, and would
then restart regular preview.

However, with the second call to onSharedPreferenceChanged
coming in right after the first, the method no longer sees
an effect transition in progress (since current and new
effect are equal to none now), and thus just ends up
restarting preview. That attempt at restart runs into the
crash because the main SurfaceView has not yet been released
by the background effects thread.

To fix this, InLineSettingSwitch should not invoke the
listener when updating UI.

bug:5679133

Change-Id: I06aca382105455585b633dc63f014a8f71ccadbe
/packages/apps/LegacyCamera/src/com/android/camera/ui/InLineSettingSwitch.java
26d88fce15a24362644123af5f0cce79ea572e7b 04-Oct-2011 Chung-yih Wang <cywang@google.com> Add content descirptions for accessibility.

bug:5230109

Change-Id: I055fccea0d30c54dc8520bf1d0424b963d2ba8a5
/packages/apps/LegacyCamera/src/com/android/camera/ui/InLineSettingSwitch.java
a8b55a9628fa7c073d4f9c97c9a198275194f76a 26-Aug-2011 Chung-yih Wang <cywang@google.com> Refactor the overflow menu for new UI.

bug:5039364

+Use Switch widget for the 'Store location' preference.

Change-Id: I031cef58ab60d62d04431d7bfe742da672899deb
/packages/apps/LegacyCamera/src/com/android/camera/ui/InLineSettingSwitch.java