fix new PMD error after rebase, fix display remote file list issue

This commit is contained in:
AndyScherzinger 2016-11-02 16:56:44 +01:00
parent 0a13a5b818
commit aacdfc0c13
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 2 additions and 1 deletions

View file

@ -386,7 +386,7 @@ public class FileListListAdapter extends BaseAdapter implements FilterableListAd
*/
public void swapDirectory(OCFile directory, FileDataStorageManager updatedStorageManager
, boolean onlyOnDevice) {
if (updatedStorageManager != null && updatedStorageManager.equals(mStorageManager)) {
if (updatedStorageManager != null && !updatedStorageManager.equals(mStorageManager)) {
mStorageManager = updatedStorageManager;
mAccount = AccountUtils.getCurrentOwnCloudAccount(mContext);
}

View file

@ -30,6 +30,7 @@ import android.util.SparseBooleanArray;
*/
public class SparseBooleanArrayParcelable implements Parcelable {
@SuppressWarnings("PMD.SuspiciousConstantFieldName")
public static Parcelable.Creator<SparseBooleanArrayParcelable> CREATOR =
new Parcelable.Creator<SparseBooleanArrayParcelable>() {