mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-10-04 01:56:53 -04:00
Removed now-unused ArrayAdapterCompat class.
This commit is contained in:
1 parent
d7fbd868b9
commit
a8e6daadc3
1 file changed
-22
@@ -1,22 +0,0 @@
|
||||
package org.fdroid.fdroid.compat;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.os.Build;
|
||||
import android.widget.ArrayAdapter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class ArrayAdapterCompat {
|
||||
|
||||
@TargetApi(11)
|
||||
public static <T> void addAll(ArrayAdapter<T> adapter, List<T> list) {
|
||||
if (Build.VERSION.SDK_INT >= 11) {
|
||||
adapter.addAll(list);
|
||||
} else {
|
||||
for (T category : list) {
|
||||
adapter.add(category);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user