mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
minor code optimizations
This commit is contained in:
parent
45c82e4fed
commit
337191ff1a
5 changed files with 2 additions and 16 deletions
|
@ -31,7 +31,6 @@ import android.webkit.MimeTypeMap;
|
|||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Enumeration;
|
||||
|
||||
import third_parties.daveKoeller.AlphanumComparator;
|
||||
public class OCFile implements Parcelable, Comparable<OCFile> {
|
||||
|
|
|
@ -226,6 +226,7 @@ public class FileMenuFilter {
|
|||
} else {
|
||||
toShow.add(R.id.action_unfavorite_file);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -706,6 +706,7 @@ public class FileDisplayActivity extends HookActivity
|
|||
Toast t = Toast.makeText(this, getString(R.string.filedisplay_no_file_selected),
|
||||
Toast.LENGTH_LONG);
|
||||
t.show();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ import android.content.Context;
|
|||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.support.v4.widget.SwipeRefreshLayout;
|
||||
import android.view.ContextMenu;
|
||||
import android.view.Menu;
|
||||
|
@ -58,7 +57,6 @@ import com.owncloud.android.ui.dialog.RenameFileDialogFragment;
|
|||
import com.owncloud.android.ui.preview.PreviewImageFragment;
|
||||
import com.owncloud.android.ui.preview.PreviewMediaFragment;
|
||||
import com.owncloud.android.ui.preview.PreviewTextFragment;
|
||||
import com.owncloud.android.utils.DisplayUtils;
|
||||
import com.owncloud.android.utils.FileStorageUtils;
|
||||
|
||||
import java.io.File;
|
||||
|
|
|
@ -22,21 +22,9 @@
|
|||
|
||||
package com.owncloud.android.utils;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.IDN;
|
||||
import java.text.DateFormat;
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.Vector;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.graphics.Point;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.os.Build;
|
||||
|
@ -47,7 +35,6 @@ import android.widget.SeekBar;
|
|||
|
||||
import com.owncloud.android.MainApp;
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.datamodel.FileDataStorageManager;
|
||||
import com.owncloud.android.datamodel.OCFile;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
|
Loading…
Reference in a new issue