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

Commit 27c778a6 authored by Richard MacGregor's avatar Richard MacGregor Committed by Steve Kondik
Browse files

Two more icons

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

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

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