Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use correct policy links and change Cookie Policy to Refund Policy #1894

Merged
merged 1 commit into from
Aug 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

public class LegalPreferenceFragment extends PreferenceFragmentCompat {

public static final String PRIVACY_POLICY_URL = "https://eventyay.com/privacy-policy/";
public static final String COOKIE_POLICY_URL = "https://eventyay.com/cookie-policy/";
public static final String TERMS_OF_USE_URL = "https://eventyay.com/terms/";
public static final String PRIVACY_POLICY_URL = "https://eventyay.com/privacy-policy";
public static final String REFUND_POLICY_URL = "https://eventyay.com/refunds";
public static final String TERMS_OF_USE_URL = "https://eventyay.com/terms";

public static LegalPreferenceFragment newInstance() {
return new LegalPreferenceFragment();
Expand Down Expand Up @@ -48,8 +48,8 @@ public void onCreatePreferencesFix(@Nullable Bundle bundle, String rootKey) {
return true;
});

findPreference(getString(R.string.cookie_policy_key)).setOnPreferenceClickListener(preference -> {
BrowserUtils.launchUrl(getContext(), COOKIE_POLICY_URL);
findPreference(getString(R.string.refund_policy_key)).setOnPreferenceClickListener(preference -> {
BrowserUtils.launchUrl(getContext(), REFUND_POLICY_URL);
return true;
});
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@
<string name="privacy_policy">Privacy Policy</string>
<string name="app_version_key">app_version</string>
<string name="legal">Legal</string>
<string name="cookie_policy_key">cookie_policy</string>
<string name="refund_policy_key">refund_policy</string>
<string name="terms_of_service_key">terms_of_service</string>
<string name="terms_of_service">Terms of Service</string>
<string name="cookie_policy">Cookie Policy</string>
<string name="refund_policy">Refund Policy</string>
<string name="legal_key">legal_key</string>
<string name="signup_agreement">By signing up, I agree to Eventyay\'s</string>
<string name="and">and</string>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/xml/legal_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
android:title="@string/terms_of_service" />

<Preference
android:key="@string/cookie_policy_key"
android:title="@string/cookie_policy" />
android:key="@string/refund_policy_key"
android:title="@string/refund_policy" />

</PreferenceScreen>