mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +01:00
* Replace Hard-Coded strings with those from strings.xml.
This commit is contained in:
parent
0349e3e069
commit
864ecad2e7
6 changed files with 15 additions and 8 deletions
|
|
@ -199,7 +199,7 @@ public class AchievementsActivity extends NavigationBaseActivity {
|
|||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.putExtra(Intent.EXTRA_STREAM, fileUri);
|
||||
intent.setType("image/png");
|
||||
startActivity(Intent.createChooser(intent, "Share image via"));
|
||||
startActivity(Intent.createChooser(intent, getString(R.string.share_image_via)));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
@ -316,8 +316,8 @@ public class AchievementsActivity extends NavigationBaseActivity {
|
|||
|
||||
private void setZeroAchievements() {
|
||||
AlertDialog.Builder builder=new AlertDialog.Builder(this)
|
||||
.setMessage("You haven't made any contributions yet")
|
||||
.setPositiveButton("Ok", (dialog, which) -> {
|
||||
.setMessage(getString(R.string.no_achievements_yet))
|
||||
.setPositiveButton(getString(R.string.ok), (dialog, which) -> {
|
||||
});
|
||||
AlertDialog dialog = builder.create();
|
||||
dialog.show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue