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

Commit fbc9fe2b authored by George Chang's avatar George Chang Committed by Automerger Merge Worker
Browse files

Merge "Fix warnings from static analysis tool." am: 7464e441 am: cbd6a61f...

Merge "Fix warnings from static analysis tool." am: 7464e441 am: cbd6a61f am: f3dbfcfb am: e69cbc5e

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2519737



Change-Id: I09cf0deff3af7c6766a0107ad21f13fca8d3ba49
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents a9e3e32a e69cbc5e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -124,6 +124,9 @@ public final class NdefFormatable extends BasicTagTechnology {
        try {
            int serviceHandle = mTag.getServiceHandle();
            INfcTag tagService = mTag.getTagService();
            if (tagService == null) {
                throw new IOException();
            }
            int errorCode = tagService.formatNdef(serviceHandle, MifareClassic.KEY_DEFAULT);
            switch (errorCode) {
                case ErrorCodes.SUCCESS: