Skip to content

Commit

Permalink
Added 'More...' menu
Browse files Browse the repository at this point in the history
  • Loading branch information
d3rt0xx authored Jun 28, 2022
1 parent 078fb8d commit 2b729c9
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion app/src/main/java/app/d3rt0xx/flyffdroid/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public class MainActivity extends AppCompatActivity {
Menu optionMenu;

String url = "https://universe.flyff.com/play";
String news = "https://universe.flyff.com/news";
String flyffipedia = "https://flyffipedia.com";
String flyffulator = "https://flyffulator.com";
String skillulator = "https://skillulator.com";
String flyffdroid = "https://github.com/d3rt0xx/FlyffDroid";

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand Down Expand Up @@ -218,6 +223,36 @@ public boolean onOptionsItemSelected(MenuItem item) {

lockUnlockRotation();

break;

case R.id.news:

mClientWebView.loadUrl(news);

break;

case R.id.flyffipedia:

mClientWebView.loadUrl(flyffipedia);

break;

case R.id.flyffulator:

mClientWebView.loadUrl(flyffulator);

break;

case R.id.skillulator:

mClientWebView.loadUrl(skillulator);

break;

case R.id.flyffdroid:

mClientWebView.loadUrl(flyffdroid);

break;
}
return super.onOptionsItemSelected(item);
Expand Down Expand Up @@ -393,4 +428,4 @@ public void onConfigurationChanged(@NonNull Configuration newConfig) {
}

}
}
}

0 comments on commit 2b729c9

Please sign in to comment.