Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d58c13e4 authored by Richard MacGregor's avatar Richard MacGregor
Browse files

Two more icons

System files are now pretty.
More executables are now pretty.

Change-Id: I963d3a1d737697d4178f2d049c2e7a61da974b26
parent 2fe9a286
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -315,16 +315,14 @@ public final class MimeTypeHelper {


        // Check  system file
        // Check  system file
        if (FileHelper.isSystemFile(fso)) {
        if (FileHelper.isSystemFile(fso)) {
            // TODO: Replace with correct drawable
            return R.drawable.ic_filetype_system_file;
            return R.drawable.fso_type_system_drawable;
        }
        }
        // Check if the fso is executable (but not a symlink)
        // Check if the fso is executable (but not a symlink)
        if (fso.getPermissions() != null && !(fso instanceof Symlink)) {
        if (fso.getPermissions() != null && !(fso instanceof Symlink)) {
            if (fso.getPermissions().getUser().isExecute() ||
            if (fso.getPermissions().getUser().isExecute() ||
                fso.getPermissions().getGroup().isExecute() ||
                fso.getPermissions().getGroup().isExecute() ||
                fso.getPermissions().getOthers().isExecute()) {
                fso.getPermissions().getOthers().isExecute()) {
                // TODO: Replace with correct drawable
                return R.drawable.ic_filetype_executable;
                return R.drawable.fso_type_executable_drawable;
            }
            }
        }
        }
        return R.drawable.ic_category_misc;
        return R.drawable.ic_category_misc;