Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9544eed6 authored by Matthew Xie's avatar Matthew Xie Committed by Android Git Automerger
Browse files

am 5cb59523: Change timestamp type from int to long, timestamp(now) overflows int

* commit '5cb59523':
  Change timestamp type from int to long, timestamp(now) overflows int
parents 2a7e29a4 5cb59523
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ class BluetoothOppNotification {

        int totalTotal = 0; // total bytes for current transfer

        int timeStamp = 0; // Database time stamp. Used for sorting ongoing transfers.
        long timeStamp = 0; // Database time stamp. Used for sorting ongoing transfers.

        String description; // the text above progress bar

@@ -238,7 +238,7 @@ class BluetoothOppNotification {

        mNotifications.clear();
        for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {
            int timeStamp = cursor.getInt(timestampIndex);
            long timeStamp = cursor.getLong(timestampIndex);
            int dir = cursor.getInt(directionIndex);
            int id = cursor.getInt(idIndex);
            int total = cursor.getInt(totalBytesIndex);