Changes to Phone App necessary for BluetoothHeadset.getBatteryUsageHint()
Nick Pelly [Fri, 19 Jun 2009 17:11:46 +0000 (10:11 -0700)]
src/com/android/phone/BluetoothHeadsetService.java

index fec992c..ab298e0 100644 (file)
@@ -650,6 +650,11 @@ public class BluetoothHeadsetService extends Service {
             }
             return mHeadsetPriority.get(address.toUpperCase());
         }
+        public int getBatteryUsageHint() {
+            enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission");
+
+            return HeadsetBase.getAtInputCount();
+        }
     };
 
     @Override