Skip to content

Commit

Permalink
Minor code style fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
phansier committed Jan 26, 2018
1 parent fdfe8f5 commit d03ed67
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@
import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.PATCH;
import retrofit2.http.Path;
import retrofit2.http.Query;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public void onClick(View v) {
if (milestone.number > 0)
actionBar.setTitle(milestone.title);
else
actionBar.setTitle(R.string.new_milestone);
actionBar.setTitle(R.string.ms_new_milestone);
actionBar.setSubtitle(repositoryId.generateId());

titleText.addTextChangedListener(new TextWatcherAdapter() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void show() {
}

IssueDialogFragment.show(activity, requestCode,
activity.getString(R.string.select_issue), null,
activity.getString(R.string.ms_select_issue), null,
repositoryIssues);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@
import com.github.mobile.ui.DialogFragmentActivity;
import com.github.mobile.ui.SingleChoiceDialogFragment;

import org.eclipse.egit.github.core.Milestone;

import java.util.ArrayList;

import static android.app.Activity.RESULT_OK;
import static android.content.DialogInterface.BUTTON_NEGATIVE;
import static android.content.DialogInterface.BUTTON_NEUTRAL;

/**
* Dialog fragment to add an issue to milestone
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
<string name="render_markdown">Отобразить Markdown</string>
<string name="copy_hash">Копировать хэш</string>
<string name="toast_msg_copied">Скопировано в буфер обмена</string>

<string name="ms_closed_issues">"Закрытые: "</string>
<string name="ms_due_by">"До "</string>
<string name="ms_opened_issues">"Открытые: "</string>
Expand All @@ -355,6 +356,7 @@
<string name="issues_display_opened">Показать открытые</string>
<string name="ms_time_past">Просрочен</string>
<string name="ms_days">дней</string>
<string name="new_milestone">Новый milestone</string>
<string name="ms_select_issue">Выбрать задачу</string>
<string name="ms_new_milestone">Новая цель</string>

</resources>
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@
<string name="accounts_label">Accounts</string>
<string name="select_assignee">Select Assignee</string>
<string name="select_milestone">Select Milestone</string>
<string name="select_issue">Select Issue</string>
<string name="select_labels">Select Labels</string>
<string name="select_ref">Select Branch or Tag</string>
<string name="login_pass_explanation">ForkHub will only use your password to generate a &lt;i>Personal Access Token&lt;/i>. If you prefer you can &lt;a href=\"https://github.com/settings/tokens\">create it yourself&lt;/a> and use it as password here.</string>
Expand Down Expand Up @@ -352,7 +351,7 @@
<string name="ms_due_by">Due by </string>
<string name="ms_opened_issues">Opened:</string>
<string name="ms_closed_issues">Closed:</string>
<string name="new_milestone">New milestone</string>
<string name="ms_new_milestone">New milestone</string>
<string name="ms_date_2_weeks">2 weeks</string>
<string name="ms_date_month">month</string>
<string name="ms_choose_date">Choose date</string>
Expand All @@ -362,5 +361,6 @@
<string name="ms_time_past">past due by</string>
<string name="ms_days">days</string>
<string name="ms_date_format">dd MMM yyyy</string>
<string name="ms_select_issue">Select Issue</string>

</resources>

0 comments on commit d03ed67

Please sign in to comment.