Make Android Studio a little happier
This commit is contained in:
parent
f34237f333
commit
52436350c6
@ -64,7 +64,7 @@ public class FDroid extends AppCompatActivity implements SearchView.OnQueryTextL
|
|||||||
|
|
||||||
public static final String EXTRA_TAB_UPDATE = "extraTab";
|
public static final String EXTRA_TAB_UPDATE = "extraTab";
|
||||||
|
|
||||||
public static final String ACTION_ADD_REPO = "org.fdroid.fdroid.FDroid.ACTION_ADD_REPO";
|
private static final String ACTION_ADD_REPO = "org.fdroid.fdroid.FDroid.ACTION_ADD_REPO";
|
||||||
|
|
||||||
private static final String ADD_REPO_INTENT_HANDLED = "addRepoIntentHandled";
|
private static final String ADD_REPO_INTENT_HANDLED = "addRepoIntentHandled";
|
||||||
|
|
||||||
|
@ -4,12 +4,12 @@ import android.content.Context;
|
|||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.content.pm.PermissionInfo;
|
import android.content.pm.PermissionInfo;
|
||||||
|
|
||||||
public class Permission {
|
class Permission {
|
||||||
|
|
||||||
private final PackageManager packageManager;
|
private final PackageManager packageManager;
|
||||||
private final PermissionInfo permissionInfo;
|
private final PermissionInfo permissionInfo;
|
||||||
|
|
||||||
public Permission(Context context, String permission)
|
Permission(Context context, String permission)
|
||||||
throws PackageManager.NameNotFoundException {
|
throws PackageManager.NameNotFoundException {
|
||||||
this.packageManager = context.getPackageManager();
|
this.packageManager = context.getPackageManager();
|
||||||
this.permissionInfo = this.packageManager.getPermissionInfo(
|
this.permissionInfo = this.packageManager.getPermissionInfo(
|
||||||
|
@ -14,7 +14,7 @@ public abstract class Compatibility {
|
|||||||
return apiLevel < 1 || getApi() <= apiLevel;
|
return apiLevel < 1 || getApi() <= apiLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static int getApi() {
|
static int getApi() {
|
||||||
return Build.VERSION.SDK_INT;
|
return Build.VERSION.SDK_INT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,6 +313,7 @@ public class App extends ValueObject implements Comparable<App> {
|
|||||||
FDroidApp.disableSpongyCastleOnLollipop();
|
FDroidApp.disableSpongyCastleOnLollipop();
|
||||||
final InputStream tmpIn = apkJar.getInputStream(aSignedEntry);
|
final InputStream tmpIn = apkJar.getInputStream(aSignedEntry);
|
||||||
byte[] buff = new byte[2048];
|
byte[] buff = new byte[2048];
|
||||||
|
//noinspection StatementWithEmptyBody
|
||||||
while (tmpIn.read(buff, 0, buff.length) != -1) {
|
while (tmpIn.read(buff, 0, buff.length) != -1) {
|
||||||
/*
|
/*
|
||||||
* NOP - apparently have to READ from the JarEntry before you can
|
* NOP - apparently have to READ from the JarEntry before you can
|
||||||
|
@ -170,7 +170,7 @@ public class WifiQrView extends ScrollView implements SwapWorkflowActivity.Inner
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private BroadcastReceiver onWifiStateChanged = new BroadcastReceiver() {
|
private final BroadcastReceiver onWifiStateChanged = new BroadcastReceiver() {
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
setUIFromWifi();
|
setUIFromWifi();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user