mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
Feat : Added a feature for users to add feadback on github (#5578)
* Feat : Added a place for users to add feadback on github * Code Cleanup : Added Github Issue URL as Const * Homogenized --------- Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
This commit is contained in:
parent
3d1efecb55
commit
54312fc2ac
3 changed files with 21 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ public class MoreBottomSheetFragment extends BottomSheetDialogFragment {
|
|||
@Named("commons-page-edit")
|
||||
PageEditClient pageEditClient;
|
||||
|
||||
private static final String GITHUB_ISSUES_URL = "https://github.com/commons-app/apps-android-commons/issues";
|
||||
@Nullable
|
||||
@Override
|
||||
public View onCreateView(@NonNull final LayoutInflater inflater,
|
||||
|
|
@ -76,11 +77,19 @@ public class MoreBottomSheetFragment extends BottomSheetDialogFragment {
|
|||
binding.moreSettings.setOnClickListener(v -> onSettingsClicked());
|
||||
binding.moreProfile.setOnClickListener(v -> onProfileClicked());
|
||||
binding.morePeerReview.setOnClickListener(v -> onPeerReviewClicked());
|
||||
binding.moreFeedbackGithub.setOnClickListener(v -> onFeedbackGithubClicked());
|
||||
|
||||
setUserName();
|
||||
return binding.getRoot();
|
||||
}
|
||||
|
||||
private void onFeedbackGithubClicked() {
|
||||
final Intent intent;
|
||||
intent = new Intent(Intent.ACTION_VIEW);
|
||||
intent.setData(Uri.parse(GITHUB_ISSUES_URL));
|
||||
startActivity(intent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAttach(@NonNull final Context context) {
|
||||
super.onAttach(context);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue