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

Commit 439af392 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Update ContentResolver if not interrupted."

parents 26a4b872 eb664dfe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -190,8 +190,10 @@ public class BluetoothOppObexServerSession extends ServerRequestHandler implemen
            ContentValues updateValues;

            Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
            if (V) Log.v(TAG, "Is ContentResolverUpdateThread Interrupted :" + isInterrupted());
            /*  Check if the Operation is interrupted before entering into loop */

            while (true) {
            while ( !isInterrupted() ) {
                updateValues = new ContentValues();
                updateValues.put(BluetoothShare.CURRENT_BYTES, position);
                mContext1.getContentResolver().update(contentUri, updateValues,