mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 14:45:47 +03:00
clean imports
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
ce41617086
commit
d093e67adb
1 changed files with 0 additions and 2 deletions
|
@ -17,7 +17,6 @@ import android.net.Uri;
|
|||
import android.webkit.MimeTypeMap;
|
||||
|
||||
import com.nextcloud.android.common.ui.theme.utils.ColorRole;
|
||||
import com.nextcloud.utils.autoRename.AutoRename;
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.datamodel.OCFile;
|
||||
import com.owncloud.android.lib.resources.files.model.ServerFileInterface;
|
||||
|
@ -335,7 +334,6 @@ public final class MimeTypeUtil {
|
|||
* @return the file's mime type
|
||||
*/
|
||||
private static String extractMimeType(File file) {
|
||||
file = new File(file.getName().trim());
|
||||
Uri selectedUri = Uri.fromFile(file);
|
||||
String fileExtension = MimeTypeMap.getFileExtensionFromUrl(selectedUri.toString().toLowerCase(Locale.ROOT));
|
||||
return MimeTypeMap.getSingleton().getMimeTypeFromExtension(fileExtension);
|
||||
|
|
Loading…
Reference in a new issue