mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
codacy: introduce constant
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
ac33333c35
commit
06b581a7a9
1 changed files with 2 additions and 1 deletions
|
@ -81,6 +81,7 @@ public class ChooseRichDocumentsTemplateDialogFragment extends DialogFragment im
|
|||
private static final String ARG_TYPE = "TYPE";
|
||||
private static final String TAG = ChooseRichDocumentsTemplateDialogFragment.class.getSimpleName();
|
||||
private static final String DOT = ".";
|
||||
public static final int SINGLE_TEMPLATE = 1;
|
||||
|
||||
private RichDocumentsTemplateAdapter adapter;
|
||||
private OCFile parentFolder;
|
||||
|
@ -361,7 +362,7 @@ public class ChooseRichDocumentsTemplateDialogFragment extends DialogFragment im
|
|||
if (templateList.isEmpty()) {
|
||||
DisplayUtils.showSnackMessage(fragment.binding.list, R.string.error_retrieving_templates);
|
||||
} else {
|
||||
if (templateList.size() == 1) {
|
||||
if (templateList.size() == SINGLE_TEMPLATE) {
|
||||
fragment.onTemplateChosen(templateList.get(0));
|
||||
fragment.binding.list.setVisibility(View.GONE);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue