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

Commit 41afd589 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Clear liveData when startForRequest" into tm-dev am: 265b2c56

parents 818a03bc 265b2c56
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ public class CompanionDeviceDiscoveryService extends Service {
        intent.setAction(ACTION_START_DISCOVERY);
        intent.putExtra(EXTRA_ASSOCIATION_REQUEST, associationRequest);
        sStateLiveData.setValue(DiscoveryState.STARTING);
        sScanResultsLiveData.setValue(Collections.emptyList());

        context.startService(intent);
    }
@@ -173,7 +174,6 @@ public class CompanionDeviceDiscoveryService extends Service {

    @Override
    public void onDestroy() {
        sScanResultsLiveData.setValue(Collections.emptyList());
        super.onDestroy();
        if (DEBUG) Log.d(TAG, "onDestroy()");
    }
@@ -187,7 +187,6 @@ public class CompanionDeviceDiscoveryService extends Service {
        mStopAfterFirstMatch = request.isSingleDevice();
        mDiscoveryStarted = true;
        sStateLiveData.setValue(DiscoveryState.DISCOVERY_IN_PROGRESS);
        sScanResultsLiveData.setValue(Collections.emptyList());

        final List<DeviceFilter<?>> allFilters = request.getDeviceFilters();
        final List<BluetoothDeviceFilter> btFilters =