Fix all InlinedApi lint warnings
This commit is contained in:
parent
ca9e390e60
commit
d242440fe3
@ -260,6 +260,7 @@ public class AsyncDownloaderFromAndroid implements AsyncDownloader {
|
||||
/**
|
||||
* Get the downloadManagerId from an Intent sent by the DownloadManagerReceiver
|
||||
*/
|
||||
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
|
||||
public static long getDownloadId(Intent intent) {
|
||||
if (intent != null) {
|
||||
if (intent.hasExtra(DownloadManager.EXTRA_DOWNLOAD_ID)) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
package org.fdroid.fdroid.net;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.DownloadManager;
|
||||
import android.content.Context;
|
||||
import android.database.Cursor;
|
||||
@ -76,6 +77,7 @@ public class DownloaderFactory {
|
||||
return url.getHost().endsWith(".onion");
|
||||
}
|
||||
|
||||
@TargetApi(Build.VERSION_CODES.GINGERBREAD)
|
||||
private static boolean hasDownloadManager(Context context) {
|
||||
DownloadManager dm = (DownloadManager) context.getSystemService(Context.DOWNLOAD_SERVICE);
|
||||
if (dm == null) {
|
||||
|
@ -262,6 +262,7 @@ public class AppSecurityPermissions {
|
||||
return info.requestedPermissionsFlags;
|
||||
}
|
||||
|
||||
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
|
||||
private void extractPerms(PackageInfo info, Set<MyPermissionInfo> permSet,
|
||||
PackageInfo installedPkgInfo) {
|
||||
|
||||
@ -424,6 +425,7 @@ public class AppSecurityPermissions {
|
||||
return permView;
|
||||
}
|
||||
|
||||
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
|
||||
private boolean isDisplayablePermission(PermissionInfo pInfo, int newReqFlags,
|
||||
int existingReqFlags) {
|
||||
final int base = pInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user