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

Commit dd6922de authored by Matthew Xie's avatar Matthew Xie
Browse files

Change timestamp type from int to long, timestamp(now) overflows int

BluetoothOppNotification NotificationItem.timeStamp is int, too
small to be a timestamp
bug 6670668

Change-Id: Ieec5377bac3b8c7fbaa24d059ad5957ba9a0544f
parent a58a2c39
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);