mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Fix logging for 'restricted' power bucket.
This commit is contained in:
committed by
Alex Hart
parent
49c8c88a22
commit
7c209db146
@@ -8,6 +8,8 @@ import androidx.annotation.RequiresApi;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RESTRICTED;
|
||||
|
||||
@RequiresApi(28)
|
||||
public final class BucketInfo {
|
||||
|
||||
@@ -73,6 +75,7 @@ public final class BucketInfo {
|
||||
case UsageStatsManager.STANDBY_BUCKET_WORKING_SET: return "Working Set";
|
||||
case UsageStatsManager.STANDBY_BUCKET_RARE: return "Rare";
|
||||
case STANDBY_BUCKET_EXEMPTED: return "Exempted";
|
||||
case STANDBY_BUCKET_RESTRICTED: return "Restricted";
|
||||
default: return "Unknown " + bucket;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user