kopia lustrzana https://github.com/olgamiller/SSTVEncoder2
Added "Privacy Policy" (because of the new Google Play policies)
rodzic
fc244c2c9e
commit
df5589f925
|
@ -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();
|
||||
|
|
|
@ -40,4 +40,9 @@
|
|||
app:showAsAction="ifRoom">
|
||||
<menu/>
|
||||
</item>
|
||||
<item
|
||||
android:id="@+id/action_privacy_policy"
|
||||
android:title="@string/action_privacy_policy"
|
||||
app:showAsAction="never">
|
||||
</item>
|
||||
</menu>
|
||||
|
|
|
@ -24,6 +24,15 @@
|
|||
<string name="action_robot36">Robot 36</string>
|
||||
<string name="action_robot72">Robot 72</string>
|
||||
<string name="action_wraaseSC2_180">Wraase SC2 180</string>
|
||||
<string name="action_privacy_policy">Privacy Policy</string>
|
||||
<string name="action_privacy_policy_text">
|
||||
SSTV Encoder converts images to audio.
|
||||
\n\nTo convert the image, it will be loaded into temporary memory.
|
||||
\n\nThe loaded image can be scaled and rotated. Neither the modified image nor the modifications will be stored. The link to the last loaded image will be stored in the app settings locally.
|
||||
\n\nA text overlay can be added. It will be stored in the app settings locally.
|
||||
\n\nThe modified image with text overlays will be encoded to audio using the selected mode. The selected mode will be stored in the app settings locally.
|
||||
\n\nThe resulting audio can either be played back by pressing the play button or saved locally on the device by pressing the save button.
|
||||
</string>
|
||||
<string name="load_img_err_title">Image loading error</string>
|
||||
<string name="load_img_orientation_err_title">Image orientation error</string>
|
||||
<string name="load_img_err_txt_unsupported">Unsupported content.</string>
|
||||
|
|
Ładowanie…
Reference in New Issue