Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java

Issue 2858823002: Move @TargetApi annotation to AndroidBatteryManagerWrapper (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java
diff --git a/device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java b/device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java
index c418a8fefcf3c095dc9d4ad7654fb03e86053aa6..a13a6520d41f2db406cccd7ba2d525c649fd2b3a 100644
--- a/device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java
+++ b/device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java
@@ -4,7 +4,6 @@
package org.chromium.device.battery;
-import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.BroadcastReceiver;
import android.content.Context;
@@ -59,7 +58,7 @@ class BatteryStatusManager {
mBatteryManager = batteryManager;
}
- @SuppressLint("NewApi")
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
public int getIntProperty(int id) {
return mBatteryManager.getIntProperty(id);
}
@@ -164,7 +163,6 @@ class BatteryStatusManager {
mCallback.onBatteryStatusChanged(batteryStatus);
}
- @TargetApi(Build.VERSION_CODES.LOLLIPOP)
private void updateBatteryStatusForLollipop(BatteryStatus batteryStatus) {
assert mAndroidBatteryManager != null;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698