diff --git a/xwords4/android/app/build.gradle b/xwords4/android/app/build.gradle index 500e1a755..283ced899 100644 --- a/xwords4/android/app/build.gradle +++ b/xwords4/android/app/build.gradle @@ -205,7 +205,7 @@ dependencies { // 2.6.8 is probably as far forward as I can go without upping my // min-supported SDK version - xw4dImplementation('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') { + xw4dImplementation('com.crashlytics.sdk.android:crashlytics:2.6.3@aar') { transitive = true; } } diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DBUtils.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DBUtils.java index 63b08f0cc..035d107e2 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DBUtils.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DBUtils.java @@ -453,7 +453,7 @@ public class DBUtils { public long m_rowid; private ArrayList m_means; private ArrayList m_targets; - private ArrayList m_timestamps; + private ArrayList m_timestamps; private int m_cachedCount = 0; @Override @@ -476,10 +476,10 @@ public class DBUtils { m_rowid = rowID; m_means = new ArrayList(); m_targets = new ArrayList(); - m_timestamps = new ArrayList(); + m_timestamps = new ArrayList(); } - private void addEntry( InviteMeans means, String target, Timestamp ts ) + private void addEntry( InviteMeans means, String target, Date ts ) { m_means.add( means ); m_targets.add( target ); @@ -586,7 +586,10 @@ public class DBUtils { { SentInvitesInfo result = new SentInvitesInfo( rowid ); - String[] columns = { DBHelper.MEANS, DBHelper.TIMESTAMP, DBHelper.TARGET }; + String[] columns = { DBHelper.MEANS, DBHelper.TARGET, + " (strftime('%s', " + DBHelper.TIMESTAMP + + ") * 1000) AS " + DBHelper.TIMESTAMP, + }; String selection = String.format( "%s = %d", DBHelper.ROW, rowid ); String orderBy = DBHelper.TIMESTAMP + " DESC"; @@ -600,7 +603,7 @@ public class DBUtils { while ( cursor.moveToNext() ) { InviteMeans means = InviteMeans.values()[cursor.getInt( indxMns )]; - Timestamp ts = Timestamp.valueOf(cursor.getString(indxTS)); + Date ts = new Date(cursor.getLong(indxTS)); String target = cursor.getString( indxTrgt ); result.addEntry( means, target, ts ); }