OSDN Git Service

Add a flag for the Bluetooth device details page
authorAntony Sargent <asargent@google.com>
Wed, 24 May 2017 23:29:22 +0000 (16:29 -0700)
committerAntony Sargent <asargent@google.com>
Wed, 24 May 2017 23:37:42 +0000 (16:37 -0700)
This flag will be used to control whether we use a new, separate page
for Bluetooth device details, or the existing dialog.

Bug: 35877479
Test: make RunSettingsGoogleRoboTests
Change-Id: I2bda77493695ebe3b3bb824657a1422a68918256

src/com/android/settings/bluetooth/BluetoothFeatureProvider.java
src/com/android/settings/bluetooth/BluetoothFeatureProviderImpl.java

index 358223d..a6ae31c 100644 (file)
@@ -21,7 +21,12 @@ package com.android.settings.bluetooth;
  */
 public interface BluetoothFeatureProvider {
     /**
-     * Check whether additional pairing page is enabled
+     * @return whether additional pairing page is enabled
      */
     boolean isPairingPageEnabled();
+
+    /**
+     * @return whether device details should be shown as a separate page (true) or a dialog (false)
+     */
+    boolean isDeviceDetailPageEnabled();
 }
index f5b65b7..8d9e1c4 100644 (file)
@@ -9,4 +9,9 @@ public class BluetoothFeatureProviderImpl implements BluetoothFeatureProvider {
     public boolean isPairingPageEnabled() {
         return false;
     }
+
+    @Override
+    public boolean isDeviceDetailPageEnabled() {
+        return false;
+    }
 }