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

Commit b3eb9cd6 authored by Joseph Pirozzo's avatar Joseph Pirozzo
Browse files

MAP Client: Cleanup fails in some instances

Fix Exception that could occur in clearMessages if the first id is less
than 10.

Bug: 193514315
Test: atest BluetoothInstrumentationTests
Tag: #stability
Change-Id: Ib961049cde2e38c4ba066340f51760ebb43a4e27
parent 21946df7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -436,7 +436,7 @@ class MapClientContent {
        resolver.delete(Mms.CONTENT_URI, Mms.SUBSCRIPTION_ID + " =? ",
                new String[]{Integer.toString(subscriptionId)});
        if (threads.length() > 2) {
            threads = threads.substring(1, threads.length() - 2);
            threads = threads.substring(0, threads.length() - 2);
            resolver.delete(Threads.CONTENT_URI, Threads._ID + " IN (" + threads + ")", null);
        }
    }