Fixed #4784 : Inform users about unsupported features in beta flavor (#4834)

* Display toast and disable API in LeaderboardFragment beta flavor

* Display toast and disable API in AchievementsFragment beta flavor

* Removed unused Gravity import

* Added Toast appearance tests for AchievementsFragment

* Added Toast appearance tests for LeaderboardFragment

* Improve Context detection in Achievements+Leaderboard fragments to ensure Context found for Toast

* Add testOnCreateView for AchievementsFragment
This commit is contained in:
Jacob Fano 2022-02-23 21:40:51 -08:00 committed by GitHub
parent 18a9170691
commit 1405300fd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 154 additions and 2 deletions

View file

@ -686,4 +686,6 @@ Upload your first media by tapping on the add button.</string>
<string name="no_location_found_message">How about adding the place where this image was taken?\nLocation data helps Wiki editors find your picture, making it much more useful.\nThank you!</string>
<string name="add_location">Add location</string>
<string name="feedback_sharing_data_alert">Please remove from this email any information that you are not comfortable sharing publicly. Also, please be aware that your email address with which you are posting, and the associated name and profile picture, will be visible publicly.</string>
<string name="achievements_unavailable_beta">Achievements are only available in the prod flavor.</string>
<string name="leaderboard_unavailable_beta">The leaderboard is only available in the prod flavor.</string>
</resources>