Skip to content

Commit c593851

Browse files
committed
Update version for v2.0.1 release
Improve time display in transaction list Update CHANGELOG
1 parent 68ed270 commit c593851

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
Change Log
22
===============================================================================
3+
Version 2.0.1 *(2015-11-05)*
4+
----------------------------
5+
* Feature: Menu options for moving/duplicating transactions
6+
* Fixed: Invalid QIF exported, causing crashes when importing on desktop
7+
* Fixed: Account delete dialog not displaying properly / only partially deleting transactions
8+
* Fixed: Moving transaction to another account from within the split editor sets the amount to zero
9+
* Improved: Amounts now use standard commodities & fraction digit on all devices
10+
311
Version 2.0.0 *(2015-11-01)*
412
----------------------------
513
* Feature: Updated app design to use Material Design guidelines

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ apply plugin: 'io.fabric'
66
def versionMajor = 2
77
def versionMinor = 0
88
def versionPatch = 1
9-
def versionBuild = 2
9+
def versionBuild = 3
1010

1111
def buildTime() {
1212
def df = new SimpleDateFormat("yyyyMMdd HH:mm 'UTC'")

app/src/main/java/org/gnucash/android/ui/transaction/TransactionsListFragment.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,7 @@ public void onBindViewHolderCursor(ViewHolder holder, Cursor cursor) {
264264
holder.transactionNote.setText(text);
265265

266266
long dateMillis = cursor.getLong(cursor.getColumnIndexOrThrow(DatabaseSchema.TransactionEntry.COLUMN_TIMESTAMP));
267-
String dateText;
268-
if (dateMillis > System.currentTimeMillis()){
269-
dateText = simpleDateFormat.format(new Date(dateMillis));
270-
} else {
271-
dateText = DateUtils.getRelativeTimeSpanString(dateMillis).toString();
272-
}
267+
String dateText = DateUtils.getRelativeTimeSpanString(dateMillis, System.currentTimeMillis(), DateUtils.DAY_IN_MILLIS).toString();
273268
holder.transactionDate.setText(dateText);
274269

275270
final long id = holder.transactionId;

0 commit comments

Comments
 (0)