codacy: fix newly created issues

This commit is contained in:
AndyScherzinger 2018-08-23 17:49:25 +02:00
parent df18d6eccc
commit 63f2d407a4
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
3 changed files with 3 additions and 3 deletions

View file

@ -331,7 +331,7 @@ public class PassCodeActivity extends AppCompatActivity {
boolean result = true;
for (int i = 0; i < mPassCodeEditTexts.length && result; i++) {
result = (mPassCodeEditTexts[i].getText().toString()).equals(mPassCodeDigits[i]);
result = mPassCodeEditTexts[i].getText().toString().equals(mPassCodeDigits[i]);
}
return result;
}

View file

@ -131,6 +131,7 @@ public class ReceiveExternalFilesActivity extends FileActivity
public static final String URL_FILE_SUFFIX = ".url";
public static final String WEBLOC_FILE_SUFFIX = ".webloc";
public static final String DESKTOP_FILE_SUFFIX = ".desktop";
public static final int SINGLE_PARENT = 1;
private AccountManager mAccountManager;
private Stack<String> mParents = new Stack<>();
@ -1063,7 +1064,7 @@ public class ReceiveExternalFilesActivity extends FileActivity
dialog.show(getSupportFragmentManager(), CreateFolderDialogFragment.CREATE_FOLDER_FRAGMENT);
break;
case android.R.id.home:
if (mParents.size() > 1) {
if (mParents.size() > SINGLE_PARENT) {
onBackPressed();
}
break;

View file

@ -27,7 +27,6 @@ package com.owncloud.android.utils;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;