mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
codacy: fix newly created issues
This commit is contained in:
parent
df18d6eccc
commit
63f2d407a4
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue