mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-17 15:32:48 +00:00
remove some unused / outdated resources
This commit is contained in:
parent
9c272fd881
commit
14b3158289
16 changed files with 8 additions and 292 deletions
|
@ -48,10 +48,10 @@ public final class GestureSettingsFragment extends SubScreenFragment {
|
|||
final SharedPreferences prefs = getSharedPreferences();
|
||||
final Resources res = getResources();
|
||||
setPreferenceVisible(Settings.PREF_GESTURE_PREVIEW_TRAIL,
|
||||
Settings.readGestureInputEnabled(prefs, res));
|
||||
Settings.readGestureInputEnabled(prefs));
|
||||
setPreferenceVisible(Settings.PREF_GESTURE_FLOATING_PREVIEW_TEXT,
|
||||
Settings.readGestureInputEnabled(prefs, res));
|
||||
Settings.readGestureInputEnabled(prefs));
|
||||
setPreferenceVisible(Settings.PREF_GESTURE_SPACE_AWARE,
|
||||
Settings.readGestureInputEnabled(prefs, res));
|
||||
Settings.readGestureInputEnabled(prefs));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -262,17 +262,8 @@ public final class Settings implements SharedPreferences.OnSharedPreferenceChang
|
|||
res.getBoolean(R.bool.config_block_potentially_offensive));
|
||||
}
|
||||
|
||||
public static boolean readFromBuildConfigIfGestureInputEnabled(final Resources res) {
|
||||
if (!JniUtils.sHaveGestureLib) {
|
||||
return false;
|
||||
}
|
||||
return res.getBoolean(R.bool.config_gesture_input_enabled_by_build_config);
|
||||
}
|
||||
|
||||
public static boolean readGestureInputEnabled(final SharedPreferences prefs,
|
||||
final Resources res) {
|
||||
return readFromBuildConfigIfGestureInputEnabled(res)
|
||||
&& prefs.getBoolean(PREF_GESTURE_INPUT, true);
|
||||
public static boolean readGestureInputEnabled(final SharedPreferences prefs) {
|
||||
return JniUtils.sHaveGestureLib && prefs.getBoolean(PREF_GESTURE_INPUT, true);
|
||||
}
|
||||
|
||||
public static boolean readFromBuildConfigIfToShowKeyPreviewPopupOption(final Resources res) {
|
||||
|
|
|
@ -188,7 +188,7 @@ public class SettingsValues {
|
|||
Settings.PREF_ENABLE_EMOJI_ALT_PHYSICAL_KEY, true);
|
||||
mShowAppIcon = Settings.readShowSetupWizardIcon(prefs, context);
|
||||
mIsShowAppIconSettingInPreferences = prefs.contains(Settings.PREF_SHOW_SETUP_WIZARD_ICON);
|
||||
mGestureInputEnabled = Settings.readGestureInputEnabled(prefs, res);
|
||||
mGestureInputEnabled = Settings.readGestureInputEnabled(prefs);
|
||||
mGestureTrailEnabled = prefs.getBoolean(Settings.PREF_GESTURE_PREVIEW_TRAIL, true);
|
||||
mCloudSyncEnabled = prefs.getBoolean(LocalSettingsConstants.PREF_ENABLE_CLOUD_SYNC, false);
|
||||
mAccount = prefs.getString(LocalSettingsConstants.PREF_ACCOUNT_NAME,
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2013 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.dslul.openboard.inputmethod.latin.utils;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import org.dslul.openboard.inputmethod.latin.R;
|
||||
|
||||
/**
|
||||
* Helper class to get the metadata URI and the additional ID.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public class MetadataFileUriGetter {
|
||||
private MetadataFileUriGetter() {
|
||||
// This helper class is not instantiable.
|
||||
}
|
||||
|
||||
public static String getMetadataUri(final Context context) {
|
||||
return context.getString(R.string.dictionary_pack_metadata_uri);
|
||||
}
|
||||
|
||||
public static String getMetadataAdditionalId(final Context context) {
|
||||
return "";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue