diff --git a/src/main/java/com/owncloud/android/ui/activity/PassCodeActivity.java b/src/main/java/com/owncloud/android/ui/activity/PassCodeActivity.java index 0f32198e12..638a11f8af 100644 --- a/src/main/java/com/owncloud/android/ui/activity/PassCodeActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/PassCodeActivity.java @@ -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; } diff --git a/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java b/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java index f26a595aab..9603c3c1db 100755 --- a/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java @@ -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 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; diff --git a/src/main/java/com/owncloud/android/utils/DisplayUtils.java b/src/main/java/com/owncloud/android/utils/DisplayUtils.java index 1ce300da84..02bee79ecb 100644 --- a/src/main/java/com/owncloud/android/utils/DisplayUtils.java +++ b/src/main/java/com/owncloud/android/utils/DisplayUtils.java @@ -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;