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

Commit ce6d0288 authored by Zach Johnson's avatar Zach Johnson
Browse files

Remove isEnabled

Can be implemented in terms of getState, so remove duplicate API.

Bug: 145171640
Test: compile & run
Change-Id: Ic708c0e30b5ca0363588fdae2b60dc3723dba3f5
parent 18d02e31
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -1061,19 +1061,6 @@ public class AdapterService extends Service {
            return null;
        }

        @Override
        public boolean isEnabled() {
            // don't check caller, may be called from system UI
            AdapterService service = getService();
            if (service == null) {
                return false;
            }

            enforceBluetoothPermission(service);

            return service.getState() == BluetoothAdapter.STATE_ON;
        }

        @Override
        public int getState() {
            // don't check caller, may be called from system UI