Browse Source

Optimisation

pull/1/head
Samuel Vermeulen 8 months ago
parent
commit
ad4aa05871
  1. 2
      app/src/main/java/fr/svpro/radiomercure/MainActivity.java
  2. 4
      app/src/main/res/menu/option.xml
  3. 3
      app/src/main/res/values/strings.xml

2
app/src/main/java/fr/svpro/radiomercure/MainActivity.java

@ -41,6 +41,8 @@ public class MainActivity extends AppCompatActivity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
this.getSupportActionBar().setTitle(R.string.app_title);
web = findViewById(R.id.wv);
web.loadUrl("https://www.radiomercure.fr");
web.getSettings().setJavaScriptEnabled(true);

4
app/src/main/res/menu/option.xml

@ -3,10 +3,10 @@
<item
android:id="@+id/refresh"
android:title="Recharger la page" />
android:title="@string/menu_reload" />
<item
android:id="@+id/exit"
android:title="Quitter" />
android:title="@string/menu_exit" />
</menu>

3
app/src/main/res/values/strings.xml

@ -1,3 +1,6 @@
<resources>
<string name="app_name">Radio Mercure</string>
<string name="menu_exit">Quitter</string>
<string name="menu_reload">Relancer...</string>
<string name="app_title">L\'APPLI RADIO MERCURE</string>
</resources>
Loading…
Cancel
Save