Browse Source

fix

pull/241/head
6543 4 weeks ago
parent
commit
25cc2f27ee
Signed by: 6543 <6543@obermui.de> GPG Key ID: A1CA74D27FD13271
3 changed files with 5 additions and 4 deletions
  1. +3
    -3
      app/src/main/java/org/mian/gitnex/activities/CreateIssueActivity.java
  2. +1
    -0
      app/src/main/res/values/strings.xml
  3. +1
    -1
      build.gradle

+ 3
- 3
app/src/main/java/org/mian/gitnex/activities/CreateIssueActivity.java View File

@@ -340,13 +340,13 @@ public class CreateIssueActivity extends AppCompatActivity implements View.OnCli

List<Milestones> 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()


+ 1
- 0
app/src/main/res/values/strings.xml View File

@@ -237,6 +237,7 @@
<string name="issueDescriptionEmpty">Issue description is empty</string>
<string name="issueCreated">New issue created successfully</string>
<string name="issueCreatedError">Something went wrong, please try again</string>
<string name="issueCreatedNoMilestone">No milestone</string>
<string name="noAssigneesFound">No collaborators found</string>
<string name="noLabelsFound">No labels found</string>



+ 1
- 1
build.gradle View File

@@ -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'

}
}


Loading…
Cancel
Save