mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -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;
|
package com.google.zxing.integration.android;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
@ -209,18 +208,6 @@ public class IntentIntegrator {
|
||||||
return targetApplications;
|
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) {
|
public final void setTargetApplications(List<String> targetApplications) {
|
||||||
if (targetApplications.isEmpty()) {
|
if (targetApplications.isEmpty()) {
|
||||||
throw new IllegalArgumentException("No target applications");
|
throw new IllegalArgumentException("No target applications");
|
||||||
|
|
Loading…
Reference in a new issue