Skip to content

Commit ef9e298

Browse files
committed
Versioning and changelog for v2.12.1
2 parents 59cb157 + 53d3c37 commit ef9e298

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Wikimedia Commons for Android
22

3+
## v2.12.1
4+
- Fixed issue with Nearby loading in wrong location
5+
- Various crash fixes
6+
37
## v2.12.0
48
- Completed codebase overhaul
59
- Added filters for place type and place state to Nearby

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ android {
110110

111111
defaultConfig {
112112
applicationId 'fr.free.nrw.commons'
113-
versionCode 508
114-
versionName '2.12.0'
113+
versionCode 542
114+
versionName '2.12.1'
115115
setProperty("archivesBaseName", "app-commons-v$versionName-" + getBranchName())
116116

117117
minSdkVersion 19

app/src/main/java/fr/free/nrw/commons/review/ReviewImageFragment.java

+8-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
7676
false);
7777
ButterKnife.bind(this, layoutView);
7878

79-
String question, explanation, yesButtonText, noButtonText;
79+
String question, explanation=null, yesButtonText, noButtonText;
8080
switch (position) {
8181
case SPAM:
8282
question = getString(R.string.review_spam);
@@ -115,12 +115,17 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
115115

116116
//Get existing user name if it is already saved using savedInstanceState else get from reviewController
117117
if (savedInstanceState == null) {
118-
user = getReviewActivity().reviewController.firstRevision.getUser();
118+
if (getReviewActivity().reviewController != null) {
119+
user = getReviewActivity().reviewController.firstRevision.getUser();
120+
}
119121
} else {
120122
user = savedInstanceState.getString(SAVED_USER);
121123
}
122124

123-
explanation = getString(R.string.review_thanks_explanation, user);
125+
//if the user is null because of whatsoever reason, review will not be sent anyways
126+
if (!TextUtils.isEmpty(user)) {
127+
explanation = getString(R.string.review_thanks_explanation, user);
128+
}
124129

125130
yesButtonText = getString(R.string.review_thanks_yes_button_text);
126131
noButtonText = getString(R.string.review_thanks_no_button_text);

app/src/main/res/values-th/strings.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,9 @@
307307
<string name="showcase_view_plus_fab">คุณสามารถอัปโหลดรูปภาพสำหรับสถานที่ใด ๆ ได้จากแกลเลอรีหรือกล้องของคุณ</string>
308308
<string name="no_images_found">ไม่พบรูปภาพ!</string>
309309
<string name="error_loading_images">เกิดข้อผิดพลาดระหว่างการโหลดภาะ</string>
310-
<string name="image_uploaded_by">อัพโหลดโดย: %1$a</string>
310+
311311
<string name="block_notification_title">ถูกบล็อก</string>
312+
<string name="image_uploaded_by">อัพโหลดโดย: %1$s</string>
312313
<string name="block_notification">คุณกำลังถูกบล็อคไม่ให้แก้ไขคอมมอนส์</string>
313314
<string name="appwidget_img">รูปภาพประจำวัน</string>
314315
<string name="app_widget_heading">รูปภาพประจำวัน</string>

0 commit comments

Comments
 (0)