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

Commit 38728306 authored by Bruno Martins's avatar Bruno Martins
Browse files

FinishActivity: Remove useless call to LineageHardwareManager

 * This is properly handled in fw/b once the setting is changed

Change-Id: I98acd00204b3f741e34069fbd9ba016fbc15c8dc
parent 0277e734
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
/*
 * Copyright (C) 2016 The CyanogenMod Project
 * Copyright (C) 2017-2018 The LineageOS Project
 * Copyright (C) 2017-2019 The LineageOS Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -44,7 +44,6 @@ import com.android.setupwizardlib.util.WizardManagerHelper;

import org.lineageos.setupwizard.util.EnableAccessibilityController;

import lineageos.hardware.LineageHardwareManager;
import lineageos.providers.LineageSettings;

public class FinishActivity extends BaseSetupWizardActivity {
@@ -213,8 +212,6 @@ public class FinishActivity extends BaseSetupWizardActivity {

        LineageSettings.System.putIntForUser(context.getContentResolver(),
                LineageSettings.System.FORCE_SHOW_NAVBAR, enabled ? 1 : 0, UserHandle.USER_CURRENT);
        LineageHardwareManager hardware = LineageHardwareManager.getInstance(context);
        hardware.set(LineageHardwareManager.FEATURE_KEY_DISABLE, enabled);

        /* Save/restore button timeouts to disable them in softkey mode */
        if (enabled) {