Skip to content

Commit

Permalink
Update version for v2.0.1 release
Browse files Browse the repository at this point in the history
Improve time display in transaction list
Update CHANGELOG
  • Loading branch information
codinguser committed Nov 5, 2015
1 parent 68ed270 commit c593851
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
Change Log
===============================================================================
Version 2.0.1 *(2015-11-05)*
----------------------------
* Feature: Menu options for moving/duplicating transactions
* Fixed: Invalid QIF exported, causing crashes when importing on desktop
* Fixed: Account delete dialog not displaying properly / only partially deleting transactions
* Fixed: Moving transaction to another account from within the split editor sets the amount to zero
* Improved: Amounts now use standard commodities & fraction digit on all devices

Version 2.0.0 *(2015-11-01)*
----------------------------
* Feature: Updated app design to use Material Design guidelines
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apply plugin: 'io.fabric'
def versionMajor = 2
def versionMinor = 0
def versionPatch = 1
def versionBuild = 2
def versionBuild = 3

def buildTime() {
def df = new SimpleDateFormat("yyyyMMdd HH:mm 'UTC'")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,7 @@ public void onBindViewHolderCursor(ViewHolder holder, Cursor cursor) {
holder.transactionNote.setText(text);

long dateMillis = cursor.getLong(cursor.getColumnIndexOrThrow(DatabaseSchema.TransactionEntry.COLUMN_TIMESTAMP));
String dateText;
if (dateMillis > System.currentTimeMillis()){
dateText = simpleDateFormat.format(new Date(dateMillis));
} else {
dateText = DateUtils.getRelativeTimeSpanString(dateMillis).toString();
}
String dateText = DateUtils.getRelativeTimeSpanString(dateMillis, System.currentTimeMillis(), DateUtils.DAY_IN_MILLIS).toString();
holder.transactionDate.setText(dateText);

final long id = holder.transactionId;
Expand Down

0 comments on commit c593851

Please sign in to comment.