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

Commit d5ba12a9 authored by Ruchi Kandoi's avatar Ruchi Kandoi
Browse files

Update Secure NFC API definitions

Bug: 124767797
Test: None
Change-Id: I90f109f08771f429966cd108eaacdf8b81d0a72e
parent 68c7aad7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -52,12 +52,12 @@ public class SecureNfcPreferenceController extends TogglePreferenceController

    @Override
    public boolean isChecked() {
        return mNfcAdapter.isNfcSecureEnabled();
        return mNfcAdapter.isSecureNfcEnabled();
    }

    @Override
    public boolean setChecked(boolean isChecked) {
        return mNfcAdapter.setNfcSecure(isChecked);
        return mNfcAdapter.enableSecureNfc(isChecked);
    }

    @Override
@@ -66,7 +66,7 @@ public class SecureNfcPreferenceController extends TogglePreferenceController
        if (mNfcAdapter == null) {
            return UNSUPPORTED_ON_DEVICE;
        }
        return mNfcAdapter.deviceSupportsNfcSecure()
        return mNfcAdapter.isSecureNfcSupported()
                ? AVAILABLE
                : UNSUPPORTED_ON_DEVICE;
    }
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ public class AdvancedConnectedDeviceDashboardFragmentTest {
        Context context = spy(RuntimeEnvironment.application);
        when(context.getApplicationContext()).thenReturn(context);
        when(NfcAdapter.getDefaultAdapter(context)).thenReturn(mNfcAdapter);
        when(mNfcAdapter.deviceSupportsNfcSecure()).thenReturn(true);
        when(mNfcAdapter.isSecureNfcSupported()).thenReturn(true);
        final List<String> niks =
                AdvancedConnectedDeviceDashboardFragment.SEARCH_INDEX_DATA_PROVIDER
                        .getNonIndexableKeys(context);