Bump version

This commit is contained in:
NekoInverter committed 2020-11-01 13:19:23 +08:00
1 parent 20b15b8794
commit f9925deb8a
7 files changed
+14 -14

No files matched your search

@@ -9,7 +9,7 @@ public class VoteTagParser {
public static VoteTagParser.Result parse(String body) throws JSONException {
VoteTagParser.Result result = new VoteTagParser.Result();
JSONObject jo = new JSONObject(body);
result.error = jo.getString("error");
if (jo.has("error")) result.error = jo.getString("error");
return result;
}
@@ -1441,10 +1441,10 @@ public class GalleryDetailScene extends BaseScene implements View.OnClickListene
int id = menuId.get(which);
switch (id) {
case R.id.vote_up:
voteTag(tag2, 1);
voteTag(tag, 1);
break;
case R.id.vote_down:
voteTag(tag2, -1);
voteTag(tag, -1);
break;
case R.id.show_definition:
UrlOpener.openUrl(context, EhUrl.getTagDefinitionUrl(tag2), false);
@@ -1465,7 +1465,7 @@ public class GalleryDetailScene extends BaseScene implements View.OnClickListene
EhRequest request = new EhRequest()
.setMethod(EhClient.METHOD_VOTE_TAG)
.setArgs(mGalleryDetail.apiUid, mGalleryDetail.apiKey, mGid, mToken, tag, vote)
.setArgs(mGalleryDetail.apiUid, mGalleryDetail.apiKey, mGalleryDetail.gid, mGalleryDetail.token, tag, vote)
.setCallback(new VoteTagListener(context,
activity.getStageId(), getTag(), mGid));
EhApplication.getEhClient(context).execute(request);