Added "Privacy Policy" (because of the new Google Play policies)

This commit is contained in:
Olga Miller 2022-12-03 13:07:52 +01:00
parent fc244c2c9e
commit df5589f925
3 changed files with 25 additions and 0 deletions

View file

@ -342,6 +342,9 @@ public class MainActivity extends AppCompatActivity {
else if (id == R.id.action_rotate) {
mCropView.rotateImage(90);
}
else if (id == R.id.action_privacy_policy) {
showTextPage(getString(R.string.action_privacy_policy), getString(R.string.action_privacy_policy_text));
}
else if (id != R.id.action_modes) {
String className = item.getIntent().getStringExtra(CLASS_NAME);
setMode(className);
@ -349,6 +352,14 @@ public class MainActivity extends AppCompatActivity {
return true;
}
private void showTextPage(String title, String message) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(title);
builder.setMessage(message);
builder.setNeutralButton(R.string.btn_ok, null);
builder.show();
}
private void setMode(String modeClassName) {
if (mEncoder.setMode(modeClassName)) {
IModeInfo modeInfo = mEncoder.getModeInfo();