Gallery: Fix logic typo

Change-Id: I4bbd9e63dd3d7b7c980453798a5bacbf1ac836f7
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Merge branch 'cm-10.2' of github.com:CyanogenMod/android_packages_apps_Gallery2 into cm-10.2