mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
Remove deprecated IntentIntegrator method
git-svn-id: https://zxing.googlecode.com/svn/trunk@2645 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
ab1c907ad8
commit
042c690d36
|
@ -16,7 +16,6 @@
|
|||
|
||||
package com.google.zxing.integration.android;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
@ -209,18 +208,6 @@ public class IntentIntegrator {
|
|||
return targetApplications;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated call {@link #setTargetApplications(List)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void setTargetApplications(Collection<String> targetApplications) {
|
||||
List<String> list = new ArrayList<String>(targetApplications.size());
|
||||
for (String app : targetApplications) {
|
||||
list.add(app);
|
||||
}
|
||||
setTargetApplications(list);
|
||||
}
|
||||
|
||||
public final void setTargetApplications(List<String> targetApplications) {
|
||||
if (targetApplications.isEmpty()) {
|
||||
throw new IllegalArgumentException("No target applications");
|
||||
|
|
Loading…
Reference in a new issue