Commit edaf6775 authored by Mark Harman's avatar Mark Harman

Add privacy policy details and link in Settings.

parent 542cd704
......@@ -58,6 +58,7 @@ FIXED Don't display ghost image whilst frontscreen flash is enabled.
FIXED Info toast string for video mode could be too long in some cases for high speed frame rates.
ADDED Support for EXTRA_DURATION_LIMIT, EXTRA_SIZE_LIMIT, EXTRA_VIDEO_QUALITY for when called from
video (ACTION_VIDEO_CAPTURE) intent.
ADDED Privacy policy details and link in Settings.
UPDATED Performance improvement for panorama.
Version 1.47.1 (2019/08/17)
......
......@@ -269,6 +269,7 @@ your wedding etc :)</p>
</ul>
<p><a name="privacy"><b>Privacy policy</b></a></p>
<!-- note this is linked to inside of Open Camera, so be careful of changing the link -->
<p>Google Play requires me to disclose that Open Camera will record camera sensor and microphone data, which is used for the purpose
of taking photos and recording videos. Microphone permission is also used for the optional "Audio control" options.</p>
......
......@@ -853,6 +853,13 @@ public class MainActivity extends Activity {
startActivity(browserIntent);
}
void launchOnlinePrivacyPolicy() {
if( MyDebug.LOG )
Log.d(TAG, "launchOnlinePrivacyPolicy");
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://opencamera.sourceforge.io/index.html#privacy"));
startActivity(browserIntent);
}
/* Audio trigger - either loud sound, or speech recognition.
* This performs some additional checks before taking a photo.
*/
......
......@@ -738,6 +738,23 @@ public class MyPreferenceFragment extends PreferenceFragment implements OnShared
});
}
{
final Preference pref = findPreference("preference_privacy_policy");
pref.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference arg0) {
if( pref.getKey().equals("preference_privacy_policy") ) {
if( MyDebug.LOG )
Log.d(TAG, "user clicked privacy policy");
MainActivity main_activity = (MainActivity)MyPreferenceFragment.this.getActivity();
main_activity.launchOnlinePrivacyPolicy();
return false;
}
return false;
}
});
}
{
ListPreference pref = (ListPreference)findPreference("preference_ghost_image");
......
......@@ -882,6 +882,13 @@
<string name="camera_id">ID</string> <!-- ID as in camera ID -->
<string name="preference_privacy_policy">Privacy policy</string>
<string name="preference_privacy_policy_summary">Please click for full privacy policy.
Open Camera accesses camera sensor and microphone data to fulfil its purpose as a camera.
Microphone is also used for the optional \"Audio control\".
Location permission is required for the optional geotagging and Bluetooth features.
</string>
<!-- There's no point translating the What's New text - it'll be updated constantly, and change each version -->
<string name="whats_new_text">
<small>[This dialog is shown when Open Camera is updated. You can disable it under
......
......@@ -1231,6 +1231,13 @@
android:icon="@drawable/ic_info_outline_white_48dp"
/>
<Preference
android:key="preference_privacy_policy"
android:title="@string/preference_privacy_policy"
android:summary="@string/preference_privacy_policy_summary"
android:icon="@drawable/ic_info_outline_white_48dp"
/>
<PreferenceScreen
android:key="preference_screen_settings_manager"
android:title="@string/preference_screen_settings_manager"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment