mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
Fix Android Studio lint warning
This commit is contained in:
parent
fbb048ce56
commit
31f2dc35bc
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ public class TermuxOpenReceiver extends BroadcastReceiver {
|
|||
if (contentTypeExtra == null) {
|
||||
String fileName = fileToShare.getName();
|
||||
int lastDotIndex = fileName.lastIndexOf('.');
|
||||
String fileExtension = fileName.substring(lastDotIndex + 1, fileName.length());
|
||||
String fileExtension = fileName.substring(lastDotIndex + 1);
|
||||
MimeTypeMap mimeTypes = MimeTypeMap.getSingleton();
|
||||
// Lower casing makes it work with e.g. "JPG":
|
||||
contentTypeToUse = mimeTypes.getMimeTypeFromExtension(fileExtension.toLowerCase());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue