Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 32a379b

Browse files
#179. Rename makeTitle to buildTitle.
1 parent 6873306 commit 32a379b

File tree

1 file changed

+2
-4
lines changed
  • app/src/main/java/com/blogspot/e_kanivets/moneytracker/report/record/model

1 file changed

+2
-4
lines changed

app/src/main/java/com/blogspot/e_kanivets/moneytracker/report/record/model/SummaryRecord.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.blogspot.e_kanivets.moneytracker.report.record.model;
22

3-
import android.support.annotation.NonNull;
4-
53
import com.blogspot.e_kanivets.moneytracker.MtApp;
64
import com.blogspot.e_kanivets.moneytracker.R;
75

@@ -17,7 +15,7 @@ public class SummaryRecord {
1715
private double amount;
1816

1917
public SummaryRecord(String title, String currency, double amount, int recordsCount) {
20-
this.title = makeTitle(title, recordsCount);
18+
this.title = buildTitle(title, recordsCount);
2119
this.currency = currency;
2220
this.amount = amount;
2321
}
@@ -34,7 +32,7 @@ public double getAmount() {
3432
return amount;
3533
}
3634

37-
private String makeTitle(String title, int recordsCount) {
35+
private String buildTitle(String title, int recordsCount) {
3836
if (recordsCount <= 1) return title;
3937
else
4038
return MtApp.get().getResources().getString(R.string.title_summary_record, title, recordsCount);

0 commit comments

Comments
 (0)