Backup privacy

This commit is contained in:
M66B
2024-06-02 15:28:56 +02:00
parent 70aad43e3e
commit c59ee483f8
5 changed files with 36 additions and 2 deletions

View File

@@ -147,6 +147,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
private TextView tvLastCleanup;
private TextView tvSdcard;
private SwitchCompat swGoogleBackup;
private TextView tvGoogleBackupPrivacy;
private CardView cardAdvanced;
private SwitchCompat swWatchdog;
@@ -398,6 +399,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
tvLastCleanup = view.findViewById(R.id.tvLastCleanup);
tvSdcard = view.findViewById(R.id.tvSdcard);
swGoogleBackup = view.findViewById(R.id.swGoogleBackup);
tvGoogleBackupPrivacy = view.findViewById(R.id.tvGoogleBackupPrivacy);
cardAdvanced = view.findViewById(R.id.cardAdvanced);
swWatchdog = view.findViewById(R.id.swWatchdog);
@@ -887,6 +889,14 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
}
});
tvGoogleBackupPrivacy.getPaint().setUnderlineText(true);
tvGoogleBackupPrivacy.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.view(v.getContext(), Uri.parse(Helper.GOOGLE_PRIVACY_URI), true);
}
});
swWatchdog.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {