Take some declaration access suggestions from AS
This commit is contained in:
parent
97eea866aa
commit
7f2efc7267
@ -126,7 +126,7 @@ public class AppDetails extends AppCompatActivity implements ProgressListener, A
|
||||
|
||||
private static final String TAG = "AppDetails";
|
||||
|
||||
public static final int REQUEST_ENABLE_BLUETOOTH = 2;
|
||||
private static final int REQUEST_ENABLE_BLUETOOTH = 2;
|
||||
|
||||
public static final String EXTRA_APPID = "appid";
|
||||
public static final String EXTRA_FROM = "from";
|
||||
@ -147,7 +147,7 @@ public class AppDetails extends AppCompatActivity implements ProgressListener, A
|
||||
}
|
||||
|
||||
// observer to update view when package has been installed/deleted
|
||||
AppObserver myAppObserver;
|
||||
private AppObserver myAppObserver;
|
||||
|
||||
class AppObserver extends ContentObserver {
|
||||
|
||||
@ -548,7 +548,7 @@ public class AppDetails extends AppCompatActivity implements ProgressListener, A
|
||||
supportInvalidateOptionsMenu();
|
||||
}
|
||||
|
||||
public void setIgnoreUpdates(String appId, boolean ignoreAll, int ignoreVersionCode) {
|
||||
private void setIgnoreUpdates(String appId, boolean ignoreAll, int ignoreVersionCode) {
|
||||
|
||||
Uri uri = AppProvider.getContentUri(appId);
|
||||
|
||||
@ -756,7 +756,7 @@ public class AppDetails extends AppCompatActivity implements ProgressListener, A
|
||||
|
||||
}
|
||||
|
||||
protected void navigateUp() {
|
||||
private void navigateUp() {
|
||||
NavUtils.navigateUpFromSameTask(this);
|
||||
}
|
||||
|
||||
@ -908,7 +908,7 @@ public class AppDetails extends AppCompatActivity implements ProgressListener, A
|
||||
}
|
||||
}
|
||||
|
||||
final Installer.InstallerCallback myInstallerCallback = new Installer.InstallerCallback() {
|
||||
private final Installer.InstallerCallback myInstallerCallback = new Installer.InstallerCallback() {
|
||||
|
||||
@Override
|
||||
public void onSuccess(final int operation) {
|
||||
|
@ -52,9 +52,9 @@ public class FDroid extends ActionBarActivity {
|
||||
|
||||
private static final String TAG = "FDroid";
|
||||
|
||||
public static final int REQUEST_PREFS = 1;
|
||||
public static final int REQUEST_ENABLE_BLUETOOTH = 2;
|
||||
public static final int REQUEST_SWAP = 3;
|
||||
private static final int REQUEST_PREFS = 1;
|
||||
private static final int REQUEST_ENABLE_BLUETOOTH = 2;
|
||||
private static final int REQUEST_SWAP = 3;
|
||||
|
||||
public static final String EXTRA_TAB_UPDATE = "extraTab";
|
||||
|
||||
@ -347,7 +347,7 @@ public class FDroid extends ActionBarActivity {
|
||||
return tabManager;
|
||||
}
|
||||
|
||||
public void refreshUpdateTabLabel() {
|
||||
private void refreshUpdateTabLabel() {
|
||||
getTabManager().refreshTabLabel(TabManager.INDEX_CAN_UPDATE);
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ public final class Utils {
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
private static final String TAG = "Utils";
|
||||
|
||||
public static final int BUFFER_SIZE = 4096;
|
||||
private static final int BUFFER_SIZE = 4096;
|
||||
|
||||
// The date format used for storing dates (e.g. lastupdated, added) in the
|
||||
// database.
|
||||
|
@ -79,7 +79,7 @@ public class PrivilegedInstaller extends Installer {
|
||||
|
||||
private Activity mActivity;
|
||||
|
||||
public static final int REQUEST_CONFIRM_PERMS = 0;
|
||||
private static final int REQUEST_CONFIRM_PERMS = 0;
|
||||
|
||||
public static final int IS_EXTENSION_INSTALLED_NO = 0;
|
||||
public static final int IS_EXTENSION_INSTALLED_YES = 1;
|
||||
|
@ -371,7 +371,7 @@ public class AsyncDownloaderFromAndroid implements AsyncDownloader {
|
||||
/**
|
||||
* Broadcast receiver to listen for ACTION_DOWNLOAD_COMPLETE broadcasts
|
||||
*/
|
||||
final BroadcastReceiver receiver = new BroadcastReceiver() {
|
||||
private final BroadcastReceiver receiver = new BroadcastReceiver() {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (DownloadManager.ACTION_DOWNLOAD_COMPLETE.equals(intent.getAction())) {
|
||||
|
@ -36,9 +36,9 @@ public class AvailableAppsFragment extends AppListFragment implements
|
||||
|
||||
private static final String TAG = "AvailableAppsFragment";
|
||||
|
||||
public static final String PREFERENCES_FILE = "CategorySpinnerPosition";
|
||||
public static final String CATEGORY_KEY = "Selection";
|
||||
public static String defaultCategory;
|
||||
private static final String PREFERENCES_FILE = "CategorySpinnerPosition";
|
||||
private static final String CATEGORY_KEY = "Selection";
|
||||
private static String defaultCategory;
|
||||
|
||||
private List<String> categories;
|
||||
private Spinner categorySpinner;
|
||||
|
Loading…
x
Reference in New Issue
Block a user