mirror of
https://github.com/olgamiller/SSTVEncoder2.git
synced 2026-04-21 06:03:53 +00:00
Added "Privacy Policy" (because of the new Google Play policies)
This commit is contained in:
parent
fc244c2c9e
commit
df5589f925
3 changed files with 25 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue