Appese checkstyle + pmd.

This commit is contained in:
Peter Serwylo 2016-04-22 23:53:13 +10:00
parent 3ebeec0b87
commit 7e83189f5b
3 changed files with 4 additions and 7 deletions

View File

@ -426,7 +426,7 @@ public class AppDetails extends AppCompatActivity {
@Override @Override
protected void onResumeFragments() { protected void onResumeFragments() {
super.onResumeFragments(); super.onResumeFragments();
headerFragment = (AppDetailsHeaderFragment)getSupportFragmentManager().findFragmentById(R.id.header); headerFragment = (AppDetailsHeaderFragment) getSupportFragmentManager().findFragmentById(R.id.header);
refreshApkList(); refreshApkList();
supportInvalidateOptionsMenu(); supportInvalidateOptionsMenu();
if (DownloaderService.isQueuedOrActive(activeDownloadUrlString)) { if (DownloaderService.isQueuedOrActive(activeDownloadUrlString)) {

View File

@ -2,17 +2,14 @@ package org.fdroid.fdroid.net;
import android.app.IntentService; import android.app.IntentService;
import android.app.NotificationManager; import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.net.Uri; import android.net.Uri;
import android.os.Process; import android.os.Process;
import android.support.v4.app.NotificationCompat; import android.support.v4.app.NotificationCompat;
import android.support.v4.app.TaskStackBuilder;
import android.text.TextUtils; import android.text.TextUtils;
import org.fdroid.fdroid.AppDetails;
import org.fdroid.fdroid.R; import org.fdroid.fdroid.R;
import org.fdroid.fdroid.Utils; import org.fdroid.fdroid.Utils;
import org.fdroid.fdroid.data.App; import org.fdroid.fdroid.data.App;

View File

@ -182,7 +182,7 @@ public class DownloaderService extends Service {
String title; String title;
if (packageName != null) { if (packageName != null) {
App app = AppProvider.Helper.findByPackageName( App app = AppProvider.Helper.findByPackageName(
getContentResolver(), packageName, new String[] { AppProvider.DataColumns.NAME }); getContentResolver(), packageName, new String[] {AppProvider.DataColumns.NAME});
title = getString(R.string.downloading_apk, app.name); title = getString(R.string.downloading_apk, app.name);
} else { } else {
title = getString(R.string.downloading); title = getString(R.string.downloading);
@ -365,7 +365,7 @@ public class DownloaderService extends Service {
* @see DownloaderService#isActive(String) * @see DownloaderService#isActive(String)
*/ */
public static boolean isQueuedOrActive(String urlString) { public static boolean isQueuedOrActive(String urlString) {
return isQueued(urlString) || isActive(urlString); return isQueued(urlString) || isActive(urlString);
} }
public static boolean isQueueEmpty() { public static boolean isQueueEmpty() {
@ -380,7 +380,7 @@ public class DownloaderService extends Service {
return false; return false;
} }
Integer what = QUEUE_WHATS.get(urlString); Integer what = QUEUE_WHATS.get(urlString);
return (what != null && serviceHandler.hasMessages(what)); return what != null && serviceHandler.hasMessages(what);
} }
/** /**