From 25cc2f27ee634fb64e063c92c919f6df6f3c1880 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 24 Dec 2019 17:09:24 +0100 Subject: [PATCH] fix --- .../org/mian/gitnex/activities/CreateIssueActivity.java | 6 +++--- app/src/main/res/values/strings.xml | 1 + build.gradle | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/mian/gitnex/activities/CreateIssueActivity.java b/app/src/main/java/org/mian/gitnex/activities/CreateIssueActivity.java index 3fa947e7..b04f5014 100644 --- a/app/src/main/java/org/mian/gitnex/activities/CreateIssueActivity.java +++ b/app/src/main/java/org/mian/gitnex/activities/CreateIssueActivity.java @@ -340,13 +340,13 @@ public class CreateIssueActivity extends AppCompatActivity implements View.OnCli List milestonesList_ = response.body(); - milestonesList.add(new Milestones(0,"No milestone")); + milestonesList.add(new Milestones(0,getString(R.string.issueCreatedNoMilestone))); assert milestonesList_ != null; if(milestonesList_.size() > 0) { for (int i = 0; i < milestonesList_.size(); i++) { - //String mStone = getString(R.string.spinnerMilestoneText, milestonesList_.get(i).getTitle(), milestonesList_.get(i).getState()); - if(milestonesList_.get(i).getState().equals(getString(R.string.issueStatusOpen))) { + //Don't translate "open" is a enum + if(milestonesList_.get(i).getState().equals("open")) { Milestones data = new Milestones( milestonesList_.get(i).getId(), milestonesList_.get(i).getTitle() diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e3dbeb9f..87dd2484 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -237,6 +237,7 @@ Issue description is empty New issue created successfully Something went wrong, please try again + No milestone No collaborators found No labels found diff --git a/build.gradle b/build.gradle index fd7d7515..623f86d8 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.5.2' + classpath 'com.android.tools.build:gradle:3.5.3' } }