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 @@ -830,6 +830,7 @@ private void setUpServiceCategory(int titleColor) {
830830 preferenceCategoryService .setTitle (StringUtils .getColorSpan (getString (R .string .prefs_category_service ),
831831 titleColor ));
832832 setupHelpPreference (titleColor );
833+ setupDeleteAccountPreference (titleColor );
833834 setupImprintPreference (titleColor );
834835 }
835836
@@ -849,6 +850,22 @@ private void setupHelpPreference(int titleColor) {
849850 }
850851 }
851852
853+ private void setupDeleteAccountPreference (int titleColor ) {
854+ Preference pHelp = findPreference ("delete_account" );
855+ if (pHelp != null ) {
856+ pHelp .setTitle (StringUtils .getColorSpan (getString (R .string .prefs_delete_account ),
857+ titleColor ));
858+ pHelp .setOnPreferenceClickListener (preference -> {
859+ String helpWeb = getString (R .string .url_delete_account );
860+ if (!helpWeb .isEmpty ()) {
861+ openLinkInWebView (helpWeb , R .string .prefs_delete_account );
862+ }
863+ return true ;
864+ });
865+
866+ }
867+ }
868+
852869 private void setupImprintPreference (int titleColor ) {
853870 Preference pImprint = findPreference ("imprint" );
854871 if (pImprint != null ) {
Original file line number Diff line number Diff line change 962962 <string name =" prefs_category_data_privacy" >Datenschutz</string >
963963 <string name =" privacy_settings" >Datenschutz</string >
964964 <string name =" privacy_policy" >Datenschutzbestimmungen</string >
965+ <string name =" prefs_delete_account" >Konto endgültig löschen</string >
965966 <string name =" prefs_open_source" >Verwendete OpenSource Software</string >
966967 <string name =" prefs_category_info" >Info</string >
967968 <string name =" prefs_category_service" >Bedienung</string >
Original file line number Diff line number Diff line change 9191 <string name =" url_imprint" ></string >
9292 <string name =" url_app_download" >"https://play.google.com/store/apps/details?id=com.nextcloud.client"</string >
9393 <string name =" url_server_install" >https://nextcloud.com/install</string >
94+ <string name =" url_delete_account" >https://www.telekom.de/hilfe/vertrag-rechnung/login-daten-passwoerter/telekom-login-loeschen</string >
9495 <!-- using different key as existing url_imprint will be duplicated during the merge process
9596 because url_app_download will be changed in branding -->
9697 <string name =" url_imprint_nmc" >https://www.telekom.de/impressum</string >
Original file line number Diff line number Diff line change 11841184 <string name =" prefs_category_data_privacy" >Data Privacy</string >
11851185 <string name =" privacy_settings" >Privacy Settings</string >
11861186 <string name =" privacy_policy" >Privacy Policy</string >
1187+ <string name =" prefs_delete_account" >Delete account permanently</string >
11871188 <string name =" prefs_open_source" >Used OpenSource Software</string >
11881189 <string name =" prefs_category_service" >Service</string >
11891190 <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