Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
add join the development menu button
Browse files Browse the repository at this point in the history
  • Loading branch information
norkator committed Jul 23, 2023
1 parent 77e9904 commit 35080d5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions app/src/main/java/com/nitramite/paketinseuranta/MainMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,10 @@ public boolean onOptionsItemSelected(MenuItem item) {
inAppPurchase(Constants.ITEM_SKU_DONATE);
return true;
}
if (id == R.id.action_join_development) {
openUrl("https://github.com/norkator/paketin-seuranta");
return true;
}
return super.onOptionsItemSelected(item);
}

Expand Down Expand Up @@ -709,6 +713,12 @@ private void checkForAutomaticBackup() {
}
}

private void openUrl(String url) {
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
}


// ---------------------------------------------------------------------------------------------
// Helpers
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/res/menu/menu_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
android:title="@string/support_development"
app:showAsAction="never" />


<item
android:id="@+id/action_join_development"
android:title="@string/join_development"
app:showAsAction="never" />

</menu>
1 change: 1 addition & 0 deletions app/src/main/res/values-fi-rFI/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@
<string name="import_backup">Tuo varmuuskopio</string>
<string name="quantity_pieces">kappaletta</string>
<string name="backup">Varmuuskopio</string>
<string name="join_development">Liity mukaan kehitykseen</string>


<!-- Strings related to Settings -->
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@
<string name="import_backup">Import backup</string>
<string name="quantity_pieces"></string>
<string name="backup">Backup</string>
<string name="join_development">Join the development</string>


<!-- Strings related to Settings -->
Expand Down

0 comments on commit 35080d5

Please sign in to comment.