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

Commit f2ecf982 authored by Wei Wang's avatar Wei Wang
Browse files

Fix build.

Change-Id: I92461859b65dac554650d7928bfddbfe9d80c2fe
parent df4a0594
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -16,8 +16,8 @@

package com.android.bluetooth.gatt;

import android.bluetooth.le.ScanSettings;
import android.bluetooth.le.ScanFilter;
import android.bluetooth.le.ScanSettings;

import java.util.List;
import java.util.UUID;
@@ -85,15 +85,15 @@ import java.util.UUID;
        this.filters = filters;
        if (settings != null) {
            switch (settings.getScanMode()) {
                case BluetoothLeScanSettings.SCAN_MODE_LOW_POWER:
                case ScanSettings.SCAN_MODE_LOW_POWER:
                    this.scanWindow = SCAN_MODE_LOW_POWER_WINDOW_MS;
                    this.scanInterval = SCAN_MODE_LOW_POWER_INTERVAL_MS;
                    break;
                case BluetoothLeScanSettings.SCAN_MODE_BALANCED:
                case ScanSettings.SCAN_MODE_BALANCED:
                    this.scanWindow = SCAN_MODE_BALANCED_WINDOW_MS;
                    this.scanInterval = SCAN_MODE_BALANCED_INTERVAL_MS;
                    break;
                case BluetoothLeScanSettings.SCAN_MODE_LOW_LATENCY:
                case ScanSettings.SCAN_MODE_LOW_LATENCY:
                    this.scanWindow = SCAN_MODE_LOW_LATENCY_WINDOW_MS;
                    this.scanInterval = SCAN_MODE_LOW_LATENCY_INTERVAL_MS;
                    break;