mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 11:47:26 -08:00
Fix problem on some platforms with AsyncTask array arg type
git-svn-id: https://zxing.googlecode.com/svn/trunk@3007 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
7ead18d172
commit
caa4ee02d5
|
@ -38,7 +38,7 @@ import java.util.List;
|
|||
*
|
||||
* @author Sean Owen
|
||||
*/
|
||||
final class LoadPackagesAsyncTask extends AsyncTask<Void,Void,List<AppInfo>> {
|
||||
final class LoadPackagesAsyncTask extends AsyncTask<Object,Object,List<AppInfo>> {
|
||||
|
||||
private static final String[] PKG_PREFIX_WHITELIST = {
|
||||
"com.google.android.apps.",
|
||||
|
@ -57,7 +57,7 @@ final class LoadPackagesAsyncTask extends AsyncTask<Void,Void,List<AppInfo>> {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected List<AppInfo> doInBackground(Void... objects) {
|
||||
protected List<AppInfo> doInBackground(Object... objects) {
|
||||
List<AppInfo> labelsPackages = new ArrayList<>();
|
||||
PackageManager packageManager = activity.getPackageManager();
|
||||
Iterable<ApplicationInfo> appInfos = packageManager.getInstalledApplications(0);
|
||||
|
|
Loading…
Reference in a new issue