@Override public void onClick(View view) { mContext.setExposureRingVisible(!mContext.isExposureRingVisible()); if (mContext.isExposureRingVisible()) { mToggleExposureRing.activeImage(DRAWABLE_KEY_EXPO_RING); } else { mToggleExposureRing.resetImage(); } SettingsStorage.storeAppSetting( mContext, KEY_SHOW_EXPOSURE_RING, mContext.isExposureRingVisible() ? "1" : "0"); }
@Override public void onClick(View view) { SnapshotManager snapMan = mContext.getSnapManager(); snapMan.setAutoEnhance(!snapMan.getAutoEnhance()); if (snapMan.getAutoEnhance()) { mToggleAutoEnhancer.activeImage(DRAWABLE_KEY_AUTO_ENHANCE); } else { mToggleAutoEnhancer.resetImage(); } SettingsStorage.storeAppSetting( mContext, KEY_ENABLE_AUTO_ENHANCE, snapMan.getAutoEnhance() ? "1" : "0"); }
@Override public void onClick(View view) { View rot = mContext.findViewById(R.id.rule_of_thirds); if (rot.getVisibility() == View.GONE) { mToggleRuleOfThirds.activeImage(DRAWABLE_KEY_RULE_OF_THIRDS); rot.setVisibility(View.VISIBLE); } else { mToggleRuleOfThirds.resetImage(); rot.setVisibility(View.GONE); } SettingsStorage.storeAppSetting( mContext, KEY_ENABLE_RULE_OF_THIRDS, rot.getVisibility() == View.GONE ? "0" : "1"); }