Skip to content

Commit

Permalink
feat: added privacy policy in drawer menu and changed the link for bu…
Browse files Browse the repository at this point in the history
…y badge.
  • Loading branch information
Jhalakupadhyay committed May 11, 2024
1 parent bb06ae1 commit 92ea52e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class DrawerActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedLi
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/fossasia/badge-magic-android/issues")))
}
R.id.buy -> {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://sg.pslab.io")))
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://badgemagic.fossasia.org/shop")))
}
R.id.share_app_details -> {
val shareIntent = Intent()
Expand All @@ -172,6 +172,9 @@ class DrawerActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedLi
switchFragment(AboutFragment.newInstance())
showMenu?.setGroupVisible(R.id.saved_group, false)
}
R.id.privacy -> {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://badgemagic.fossasia.org/privacy")))
}
}
isItemCheckedNew = false
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions android/src/main/res/menu/drawer_items.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
android:id="@+id/feedback"
android:icon="@drawable/ic_menu_bug"
android:title="@string/drawer_feedback" />
<item
android:id="@+id/privacy"
android:icon="@drawable/ic_menu_privacy_policy"
android:title="@string/drawer_privacy_policy" />
</menu>
</item>
</menu>
1 change: 1 addition & 0 deletions android/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

<string name="drawer_other">其他</string>
<string name="drawer_feedback">反馈/错误报告</string>
<string name="drawer_privacy_policy">隐私政策</string>
<string name="drawer_buy_badge">买徽章</string>
<string name="drawer_about_us">关于我们</string>
<string name="drawer_share_app">分享</string>
Expand Down
1 change: 1 addition & 0 deletions android/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

<string name="drawer_other">Other</string>
<string name="drawer_feedback">Feedback/Bug Reports</string>
<string name="drawer_privacy_policy">Privacy Policy</string>
<string name="drawer_buy_badge">Buy Badge</string>
<string name="drawer_share_app">Share</string>
<string name="drawer_about_us">About Us</string>
Expand Down

0 comments on commit 92ea52e

Please sign in to comment.