File tree Expand file tree Collapse file tree 5 files changed +24
-0
lines changed
java/com/owncloud/android/ui/activity Expand file tree Collapse file tree 5 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -828,6 +828,7 @@ private void setUpServiceCategory(int titleColor) {
828828 preferenceCategoryService.setTitle(StringUtils.getColorSpan(getString(R.string.prefs_category_service),
829829 titleColor));
830830 setupHelpPreference(titleColor);
831+ setupDeleteAccountPreference(titleColor);
831832 setupImprintPreference(titleColor);
832833 }
833834
@@ -847,6 +848,22 @@ private void setupHelpPreference(int titleColor) {
847848 }
848849 }
849850
851+ private void setupDeleteAccountPreference(int titleColor) {
852+ Preference pHelp = findPreference("delete_account");
853+ if (pHelp != null) {
854+ pHelp.setTitle(StringUtils.getColorSpan(getString(R.string.prefs_delete_account),
855+ titleColor));
856+ pHelp.setOnPreferenceClickListener(preference -> {
857+ String helpWeb = getString(R.string.url_delete_account);
858+ if (!helpWeb.isEmpty()) {
859+ openLinkInWebView(helpWeb, R.string.prefs_delete_account);
860+ }
861+ return true;
862+ });
863+
864+ }
865+ }
866+
850867 private void setupImprintPreference(int titleColor) {
851868 Preference pImprint = findPreference("imprint");
852869 if (pImprint != null) {
Original file line number Diff line number Diff line change 937937 <string name="prefs_category_data_privacy">Datenschutz</string>
938938 <string name="privacy_settings">Datenschutz</string>
939939 <string name="privacy_policy">Datenschutzbestimmungen</string>
940+ <string name="prefs_delete_account">Konto endgültig löschen</string>
940941 <string name="prefs_open_source">Verwendete OpenSource Software</string>
941942 <string name="prefs_category_info">Info</string>
942943 <string name="prefs_category_service">Bedienung</string>
Original file line number Diff line number Diff line change 9090 <string name="url_imprint"></string>
9191 <string name="url_app_download">"https://play.google.com/store/apps/details?id=com.nextcloud.client"</string>
9292 <string name="url_server_install">https://nextcloud.com/install</string>
93+ <string name="url_delete_account">https://www.telekom.de/hilfe/vertrag-rechnung/login-daten-passwoerter/telekom-login-loeschen</string>
9394 <!-- using different key as existing url_imprint will be duplicated during the merge process
9495 because url_app_download will be changed in branding -->
9596 <string name="url_imprint_nmc">https://www.telekom.de/impressum</string>
Original file line number Diff line number Diff line change 11531153 <string name="prefs_category_data_privacy">Data Privacy</string>
11541154 <string name="privacy_settings">Privacy Settings</string>
11551155 <string name="privacy_policy">Privacy Policy</string>
1156+ <string name="prefs_delete_account">Delete account permanently</string>
11561157 <string name="prefs_open_source">Used OpenSource Software</string>
11571158 <string name="prefs_category_service">Service</string>
11581159 <string name="document_scan_pdf_generation_in_progress">Generating PDF…</string>
Original file line number Diff line number Diff line change 152152 android:key="help"
153153 android:layout="@layout/custom_preference_layout"
154154 android:title="@string/prefs_help" />
155+ <Preference
156+ android:key="delete_account"
157+ android:layout="@layout/custom_preference_layout"
158+ android:title="@string/prefs_help" />
155159 <Preference
156160 android:key="imprint"
157161 android:layout="@layout/custom_preference_layout"
You can’t perform that action at this time.
0 commit comments