Skip to content

Commit

Permalink
fix: Use correct policy links and change Cookie Policy to Refund Poli…
Browse files Browse the repository at this point in the history
…cy (#1894)
  • Loading branch information
ShridharGoel authored and iamareebjamal committed Aug 16, 2019
1 parent c6caac5 commit 4437e91
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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>

0 comments on commit 4437e91

Please sign in to comment.