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

Commit 4953003e authored by Ji Yang's avatar Ji Yang Committed by android-build-merger
Browse files

Suppress new message notification on non-FBE devices.

am: 7abb62a0

Change-Id: I84d91dfc7e8fb118acbf5acfd6da64efc2f5411c
parents d007b482 7abb62a0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ import android.content.pm.UserInfo;
import android.database.Cursor;
import android.database.SQLException;
import android.net.Uri;
import android.os.storage.StorageManager;
import android.os.AsyncResult;
import android.os.Binder;
import android.os.Build;
@@ -871,6 +872,10 @@ public abstract class InboundSmsHandler extends StateMachine {
    }

    private void showNewMessageNotification() {
        // Do not show the notification on non-FBE devices.
        if (!StorageManager.isFileEncryptedNativeOrEmulated()) {
            return;
        }
        log("Show new message notification.");
        Intent intent = Intent.makeMainSelectorActivity(
            Intent.ACTION_MAIN, Intent.CATEGORY_APP_MESSAGING);