Skip to content

Commit

Permalink
feat: add license
Browse files Browse the repository at this point in the history
  • Loading branch information
GOVINDDIXIT committed Apr 17, 2019
1 parent a7523b5 commit b2f01ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,14 @@ class SettingsFragment : Fragment(), SettingsView, AdapterView.OnItemClickListen
}
}

resources.getStringArray(R.array.widechat_settings_actions)[3] -> {
resources.getStringArray(R.array.widechat_settings_actions)[3] ->activity?.startActivity(
context?.webViewIntent(
getString(R.string.license_url),
getString(R.string.title_licence)
)
)

resources.getStringArray(R.array.widechat_settings_actions)[4] -> {
showLogoutDialog()
}
}
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 @@ -98,6 +98,7 @@ https://github.com/RocketChat/java-code-styles/blob/master/CODING_STYLE.md#strin
<item name="item_preferences">Preferences</item>
<item name="item_privacy">Privacy</item>
<item name="item_about">About</item>
<item name="item_license">License</item>
<item name="item_logout">Log Out</item>
</string-array>

Expand Down

0 comments on commit b2f01ba

Please sign in to comment.