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

Commit 010fc6ae authored by kschulz's avatar kschulz Committed by Andre Eisenbach
Browse files

MAP: fix exception when Email in SMS list request

Fixed problem where an exception was thrown if the
client requests to get email listed on a MAS instance that only contains
SMS/MMS.

Bug: SD-4355
Change-Id: Id0e7f627424cc1f6f2047ec8564479288bf84d77
parent 5af2ff57
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ public class BluetoothMapFolderElement {
    private String mName;
    private BluetoothMapFolderElement mParent = null;
    private boolean mHasSmsMmsContent = false;
    private boolean mHasEmailContent = false;
    private long mEmailFolderId = -1;
    private HashMap<String, BluetoothMapFolderElement> mSubFolders;

@@ -63,6 +64,9 @@ public class BluetoothMapFolderElement {
    public long getEmailFolderId(){
        return mEmailFolderId;
    }
    public boolean hasEmailContent(){
        return mHasEmailContent;
    }

    public void setEmailFolderId(long emailFolderId) {
        this.mEmailFolderId = emailFolderId;
@@ -72,6 +76,10 @@ public class BluetoothMapFolderElement {
        this.mHasSmsMmsContent = hasSmsMmsContent;
    }

    public void setHasEmailContent(boolean hasEmailContent) {
        this.mHasEmailContent = hasEmailContent;
    }

    /**
     * Fetch the parent folder.
     * @return the parent folder or null if we are at the root folder.