mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
fixing codacy warnings
This commit is contained in:
parent
500707ce6d
commit
df60c9c8d7
5 changed files with 10 additions and 10 deletions
|
@ -67,6 +67,7 @@ public class MainApp extends Application {
|
|||
private static boolean mOnlyOnDevice = false;
|
||||
|
||||
private static SyncedFolderObserverService mObserverService;
|
||||
@SuppressWarnings("unused")
|
||||
private boolean mBound;
|
||||
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ public class MediaProvider {
|
|||
private static final Uri MEDIA_URI = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
|
||||
private static final String[] FILE_PROJECTION = new String[]{MediaStore.MediaColumns.DATA};
|
||||
private static final String FILE_SELECTION = MediaStore.Images.Media.BUCKET_ID + "=";
|
||||
private static final Uri uri1 = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
|
||||
private static final String[] FOLDER_PROJECTION = { "Distinct " + MediaStore.Images.Media.BUCKET_ID,
|
||||
MediaStore.Images.Media.BUCKET_DISPLAY_NAME };
|
||||
private static final String FOLDER_SORT_ORDER = MediaStore.Images.Media.BUCKET_DISPLAY_NAME + " ASC";
|
||||
|
|
|
@ -132,7 +132,7 @@ public class InstantUploadBroadcastReceiver extends BroadcastReceiver {
|
|||
new FileUploader.UploadRequester();
|
||||
|
||||
int behaviour = getUploadBehaviour(context);
|
||||
Boolean subfolderByDate = com.owncloud.android.db.PreferenceManager.instantPictureUploadPathUseSubfolders(context);
|
||||
Boolean subfolderByDate = PreferenceManager.instantPictureUploadPathUseSubfolders(context);
|
||||
SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
String uploadPathdef = context.getString(R.string.instant_upload_path);
|
||||
String uploadPath = pref.getString("instant_upload_path", uploadPathdef);
|
||||
|
|
|
@ -356,7 +356,7 @@ public class FolderSyncActivity extends FileActivity implements FolderSyncAdapte
|
|||
@Override
|
||||
public void onSaveSyncedFolderPreference(SyncedFolderParcelable syncedFolder) {
|
||||
SyncedFolderDisplayItem item = syncFolderItems.get(syncedFolder.getSection());
|
||||
boolean dirty = !(item.isEnabled() == syncedFolder.getEnabled());
|
||||
boolean dirty = item.isEnabled() != syncedFolder.getEnabled();
|
||||
item = updateSyncedFolderItem(item, syncedFolder.getLocalPath(), syncedFolder.getRemotePath(), syncedFolder
|
||||
.getWifiOnly(), syncedFolder.getChargingOnly(), syncedFolder.getSubfolderByDate(), syncedFolder
|
||||
.getUploadAction(), syncedFolder.getEnabled());
|
||||
|
|
|
@ -157,13 +157,13 @@ public class FolderSyncAdapter extends SectionedRecyclerViewAdapter<FolderSyncAd
|
|||
}
|
||||
|
||||
static class MainViewHolder extends RecyclerView.ViewHolder {
|
||||
final ImageView image;
|
||||
final TextView title;
|
||||
final ImageButton menuButton;
|
||||
final ImageButton syncStatusButton;
|
||||
final LinearLayout counterBar;
|
||||
final TextView counterValue;
|
||||
final ImageView thumbnailDarkener;
|
||||
private final ImageView image;
|
||||
private final TextView title;
|
||||
private final ImageButton menuButton;
|
||||
private final ImageButton syncStatusButton;
|
||||
private final LinearLayout counterBar;
|
||||
private final TextView counterValue;
|
||||
private final ImageView thumbnailDarkener;
|
||||
|
||||
private MainViewHolder(View itemView) {
|
||||
super(itemView);
|
||||
|
|
Loading…
Reference in a new issue