Use interface types where possible
This commit is contained in:
parent
10009dc1fe
commit
93c9abb887
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
package org.fdroid.fdroid;
|
package org.fdroid.fdroid;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
@ -44,11 +45,11 @@ public class FDroidCertPins {
|
|||||||
"cdae8cc70af09a55a7642d13f84241cba1c3a3e6",
|
"cdae8cc70af09a55a7642d13f84241cba1c3a3e6",
|
||||||
};
|
};
|
||||||
|
|
||||||
public static ArrayList<String> PINLIST = null;
|
public static List<String> PINLIST = null;
|
||||||
|
|
||||||
public static String[] getPinList() {
|
public static String[] getPinList() {
|
||||||
if (PINLIST == null) {
|
if (PINLIST == null) {
|
||||||
ArrayList<String> pinlist = new ArrayList<String>();
|
List<String> pinlist = new ArrayList<String>();
|
||||||
pinlist.addAll(Arrays.asList(DEFAULT_PINS));
|
pinlist.addAll(Arrays.asList(DEFAULT_PINS));
|
||||||
PINLIST = pinlist;
|
PINLIST = pinlist;
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ public class RootInstaller extends Installer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void addInstallCommand(List<File> apkFiles) {
|
private void addInstallCommand(List<File> apkFiles) {
|
||||||
ArrayList<String> commands = new ArrayList<String>();
|
List<String> commands = new ArrayList<String>();
|
||||||
String pm = "pm install -r ";
|
String pm = "pm install -r ";
|
||||||
for (File apkFile : apkFiles) {
|
for (File apkFile : apkFiles) {
|
||||||
commands.add(pm + apkFile.getAbsolutePath());
|
commands.add(pm + apkFile.getAbsolutePath());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user