Correctly retrict BucketInfo API level.
This commit is contained in:
parent
6715a89a25
commit
9974f6edf1
2 changed files with 3 additions and 3 deletions
|
@ -389,7 +389,7 @@ public class SubmitLogFragment extends Fragment {
|
|||
.append(scrubber.scrub(ApplicationContext.getInstance(context).getJobManager().getDebugInfo()))
|
||||
.append("\n\n\n");
|
||||
|
||||
if (VERSION.SDK_INT >= 22) {
|
||||
if (VERSION.SDK_INT >= 28) {
|
||||
stringBuilder.append(HEADER_POWER)
|
||||
.append("\n\n")
|
||||
.append(buildPower(context))
|
||||
|
@ -542,7 +542,7 @@ public class SubmitLogFragment extends Fragment {
|
|||
return builder;
|
||||
}
|
||||
|
||||
@RequiresApi(api = 22)
|
||||
@RequiresApi(28)
|
||||
private static CharSequence buildPower(@NonNull Context context) {
|
||||
final UsageStatsManager usageStatsManager = (UsageStatsManager) context.getSystemService(Context.USAGE_STATS_SERVICE);
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import androidx.annotation.RequiresApi;
|
|||
|
||||
import java.util.Date;
|
||||
|
||||
@RequiresApi(api = 22)
|
||||
@RequiresApi(28)
|
||||
public final class BucketInfo {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue