Refactor duplicated code in KDE Connect Android-side SMS Helper
Closed, ResolvedPublic

Description

KDE Connect's SMS helper has two blocks of very similar code, in getMessagesWithFilter and getConversations. The return types of both methods are somewhat different which means a bit of thought would have to be applied in order to build a helper method which can service both methods.

To complete this task, you will need to be able to build the latest version of the KDE Connect desktop app and you will need to set up Android Studio to build your solution. You will need an Android smartphone with SMS messages to test your changes.

Here is a link to the relevant file in our git browser, for a preview of the code in question: https://cgit.kde.org/kdeconnect-android.git/tree/src/org/kde/kdeconnect/Helpers/SMSHelper.java