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

Commit 27d192bd authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Fix notification issues with OPP.

Since its a notification event for an ongoing event, add the flag.
That prevents it from being scrollable.

Change-Id: Iaea2e7005cb4f8ab5d0b594c4ef9b30343b730fc
parent c1ba4a68
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -448,9 +448,10 @@ class BluetoothOppNotification {
        }

        for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {
            String title = mContext.getString(R.string.incoming_file_confirm_Notification_title);
            String caption = mContext
                    .getString(R.string.incoming_file_confirm_Notification_caption);
            CharSequence title =
                    mContext.getText(R.string.incoming_file_confirm_Notification_title);
            CharSequence caption = mContext
                    .getText(R.string.incoming_file_confirm_Notification_caption);
            int id = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID));
            long timeStamp = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP));
            Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id);
@@ -458,8 +459,10 @@ class BluetoothOppNotification {
            Notification n = new Notification();
            n.icon = R.drawable.bt_incomming_file_notification;
            n.flags |= Notification.FLAG_ONLY_ALERT_ONCE;
            n.flags |= Notification.FLAG_ONGOING_EVENT;
            n.defaults = Notification.DEFAULT_SOUND;
            n.tickerText = title;

            Intent intent = new Intent(Constants.ACTION_INCOMING_FILE_CONFIRM);
            intent.setClassName(Constants.THIS_PACKAGE_NAME, BluetoothOppReceiver.class.getName());
            intent.setData(contentUri);