|
|
|
@ -16,10 +16,8 @@ |
|
|
|
|
|
|
|
|
|
package org.lineageos.settings.device; |
|
|
|
|
|
|
|
|
|
import android.app.ActionBar; |
|
|
|
|
import android.content.res.Resources; |
|
|
|
|
import android.os.Bundle; |
|
|
|
|
import android.view.MenuItem; |
|
|
|
|
|
|
|
|
|
import androidx.preference.PreferenceFragment; |
|
|
|
|
|
|
|
|
@ -36,9 +34,6 @@ public class AdvancedDisplayFragment extends PreferenceFragment { |
|
|
|
|
addPreferencesFromResource(R.xml.screen_preferences); |
|
|
|
|
Resources res = getResources(); |
|
|
|
|
|
|
|
|
|
final ActionBar actionBar = getActivity().getActionBar(); |
|
|
|
|
actionBar.setDisplayHomeAsUpEnabled(true); |
|
|
|
|
|
|
|
|
|
/* mDNIe */ |
|
|
|
|
mmDNIeScenario = (mDNIeScenario) findPreference(Constants.KEY_MDNIE_SCENARIO); |
|
|
|
|
mmDNIeScenario.setEnabled( |
|
|
|
@ -48,13 +43,4 @@ public class AdvancedDisplayFragment extends PreferenceFragment { |
|
|
|
|
mmDNIeAccessibility.setEnabled( |
|
|
|
|
FileUtils.isFileWritable(res.getString(R.string.mdnie_accessibility_sysfs_file))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean onOptionsItemSelected(MenuItem item) { |
|
|
|
|
if (item.getItemId() == android.R.id.home) { |
|
|
|
|
getActivity().onBackPressed(); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|