Add link to licenses page

This commit is contained in:
Aaron Culliney 2017-07-01 11:47:15 -10:00
parent c30c50be06
commit d872ad3cdd
5 changed files with 27 additions and 0 deletions

View File

@ -267,6 +267,25 @@ public class Apple2SettingsMenu extends Apple2AbstractMenu {
activity.startActivity(i);
}
},
LICENSES {
@Override
public final String getTitle(Apple2Activity activity) {
return activity.getResources().getString(R.string.about_apple2ix_licenses);
}
@Override
public final String getSummary(Apple2Activity activity) {
return activity.getResources().getString(R.string.about_apple2ix_licenses_summary);
}
@Override
public void handleSelection(Apple2Activity activity, final Apple2AbstractMenu settingsMenu, boolean isChecked) {
String url = "https://deadc0de.org/apple2ix/licenses/";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
activity.startActivity(i);
}
},
RESET_PREFERENCES {
@Override
public final String getTitle(Apple2Activity activity) {

View File

@ -15,6 +15,8 @@
<!-- main options -->
<string name="about_apple2ix">Über Apple2ix…</string>
<string name="about_apple2ix_summary">Über diese Software</string>
<string name="about_apple2ix_licenses">Licenses…</string>
<string name="about_apple2ix_licenses_summary">Apple2ix software licenses</string>
<string name="app_name">Apple2ix</string>
<string name="audio_configure">Audio-Konfiguration…</string>
<string name="audio_configure_summary">Lautstärke, Mockingboard, etc</string>

View File

@ -15,6 +15,8 @@
<!-- main options -->
<string name="about_apple2ix">Acerca de Apple2ix…</string>
<string name="about_apple2ix_summary">Acerca de este software</string>
<string name="about_apple2ix_licenses">Licenses…</string>
<string name="about_apple2ix_licenses_summary">Apple2ix software licenses</string>
<string name="app_name">Apple2ix</string>
<string name="audio_configure">Configurar audio…</string>
<string name="audio_configure_summary">Ajustar el volumen del altavoz, "Mockingboard", etc</string>

View File

@ -15,6 +15,8 @@
<!-- main options -->
<string name="about_apple2ix">A propos d\'Apple2ix…</string>
<string name="about_apple2ix_summary">A propos de ce logiciel</string>
<string name="about_apple2ix_licenses">Licenses…</string>
<string name="about_apple2ix_licenses_summary">Apple2ix software licenses</string>
<string name="app_name">Apple2ix</string>
<string name="audio_configure">Configuration audio…</string>
<string name="audio_configure_summary">Volume du haut-parleur, Mockingboard, etc</string>

View File

@ -17,6 +17,8 @@
<!-- main options -->
<string name="about_apple2ix">About Apple2ix…</string>
<string name="about_apple2ix_summary">About this software</string>
<string name="about_apple2ix_licenses">Licenses…</string>
<string name="about_apple2ix_licenses_summary">Apple2ix software licenses</string>
<string name="app_name">Apple2ix</string>
<string name="audio_configure">Configure audio…</string>
<string name="audio_configure_summary">Speaker volume, Mockingboard, etc</string>