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

Unverified Commit c1684797 authored by LuK1337's avatar LuK1337
Browse files

Settings: Don't index VmTerminal fragment if device doesn't support it

Change-Id: Id7f2fc2111a80859627f5f0dd602d1b5caa22db1
parent 7ebf87cd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -88,7 +88,8 @@ public class LinuxTerminalDashboardFragment extends DashboardFragment {

                @Override
                protected boolean isPageSearchEnabled(Context context) {
                    return DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(context);
                    return DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(context) &&
                            new LinuxTerminalPreferenceController(context).isAvailable();
                }
            };
}