Search in sources :

Example 1 with EditTextPreference

use of android.support.v7.preference.EditTextPreference in project AntennaPod by AntennaPod.

the class PreferenceController method onCreate.

public void onCreate() {
    final Activity activity = ui.getActivity();
    if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {
        // disable expanded notification option on unsupported android versions
        ui.findPreference(PreferenceController.PREF_EXPANDED_NOTIFICATION).setEnabled(false);
        ui.findPreference(PreferenceController.PREF_EXPANDED_NOTIFICATION).setOnPreferenceClickListener(preference -> {
            Toast toast = Toast.makeText(activity, R.string.pref_expand_notify_unsupport_toast, Toast.LENGTH_SHORT);
            toast.show();
            return true;
        });
    }
    ui.findPreference(PreferenceController.PREF_FLATTR_REVOKE).setOnPreferenceClickListener(preference -> {
        FlattrUtils.revokeAccessToken(activity);
        checkItemVisibility();
        return true;
    });
    ui.findPreference(PreferenceController.PREF_ABOUT).setOnPreferenceClickListener(preference -> {
        activity.startActivity(new Intent(activity, AboutActivity.class));
        return true;
    });
    ui.findPreference(PreferenceController.STATISTICS).setOnPreferenceClickListener(preference -> {
        activity.startActivity(new Intent(activity, StatisticsActivity.class));
        return true;
    });
    ui.findPreference(PreferenceController.PREF_OPML_EXPORT).setOnPreferenceClickListener(preference -> export(new OpmlWriter()));
    ui.findPreference(PreferenceController.PREF_HTML_EXPORT).setOnPreferenceClickListener(preference -> export(new HtmlWriter()));
    ui.findPreference(PreferenceController.PREF_CHOOSE_DATA_DIR).setOnPreferenceClickListener(preference -> {
        if (Build.VERSION_CODES.KITKAT <= Build.VERSION.SDK_INT && Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP_MR1) {
            showChooseDataFolderDialog();
        } else {
            int readPermission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.READ_EXTERNAL_STORAGE);
            int writePermission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE);
            if (readPermission == PackageManager.PERMISSION_GRANTED && writePermission == PackageManager.PERMISSION_GRANTED) {
                openDirectoryChooser();
            } else {
                requestPermission();
            }
        }
        return true;
    });
    ui.findPreference(PreferenceController.PREF_CHOOSE_DATA_DIR).setOnPreferenceClickListener(preference -> {
        if (Build.VERSION.SDK_INT >= 19) {
            showChooseDataFolderDialog();
        } else {
            Intent intent = new Intent(activity, DirectoryChooserActivity.class);
            activity.startActivityForResult(intent, DirectoryChooserActivity.RESULT_CODE_DIR_SELECTED);
        }
        return true;
    });
    ui.findPreference(UserPreferences.PREF_THEME).setOnPreferenceChangeListener((preference, newValue) -> {
        Intent i = new Intent(activity, MainActivity.class);
        i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
        activity.finish();
        activity.startActivity(i);
        return true;
    });
    ui.findPreference(UserPreferences.PREF_HIDDEN_DRAWER_ITEMS).setOnPreferenceClickListener(preference -> {
        showDrawerPreferencesDialog();
        return true;
    });
    ui.findPreference(UserPreferences.PREF_COMPACT_NOTIFICATION_BUTTONS).setOnPreferenceClickListener(preference -> {
        showNotificationButtonsDialog();
        return true;
    });
    ui.findPreference(UserPreferences.PREF_UPDATE_INTERVAL).setOnPreferenceClickListener(preference -> {
        showUpdateIntervalTimePreferencesDialog();
        return true;
    });
    ui.findPreference(UserPreferences.PREF_ENABLE_AUTODL).setOnPreferenceChangeListener((preference, newValue) -> {
        if (newValue instanceof Boolean) {
            boolean enabled = (Boolean) newValue;
            ui.findPreference(UserPreferences.PREF_EPISODE_CACHE_SIZE).setEnabled(enabled);
            ui.findPreference(UserPreferences.PREF_ENABLE_AUTODL_ON_BATTERY).setEnabled(enabled);
            ui.findPreference(UserPreferences.PREF_ENABLE_AUTODL_WIFI_FILTER).setEnabled(enabled);
            setSelectedNetworksEnabled(enabled && UserPreferences.isEnableAutodownloadWifiFilter());
        }
        return true;
    });
    ui.findPreference(UserPreferences.PREF_ENABLE_AUTODL_WIFI_FILTER).setOnPreferenceChangeListener((preference, newValue) -> {
        if (newValue instanceof Boolean) {
            setSelectedNetworksEnabled((Boolean) newValue);
            return true;
        } else {
            return false;
        }
    });
    ui.findPreference(UserPreferences.PREF_PARALLEL_DOWNLOADS).setOnPreferenceChangeListener((preference, o) -> {
        if (o instanceof String) {
            try {
                int value = Integer.parseInt((String) o);
                if (1 <= value && value <= 50) {
                    setParallelDownloadsText(value);
                    return true;
                }
            } catch (NumberFormatException e) {
                return false;
            }
        }
        return false;
    });
    // validate and set correct value: number of downloads between 1 and 50 (inclusive)
    final EditText ev = ((EditTextPreference) ui.findPreference(UserPreferences.PREF_PARALLEL_DOWNLOADS)).getEditText();
    ev.addTextChangedListener(new TextWatcher() {

        @Override
        public void beforeTextChanged(CharSequence s, int start, int count, int after) {
        }

        @Override
        public void onTextChanged(CharSequence s, int start, int before, int count) {
        }

        @Override
        public void afterTextChanged(Editable s) {
            if (s.length() > 0) {
                try {
                    int value = Integer.parseInt(s.toString());
                    if (value <= 0) {
                        ev.setText("1");
                    } else if (value > 50) {
                        ev.setText("50");
                    }
                } catch (NumberFormatException e) {
                    ev.setText("6");
                }
                ev.setSelection(ev.getText().length());
            }
        }
    });
    ui.findPreference(UserPreferences.PREF_EPISODE_CACHE_SIZE).setOnPreferenceChangeListener((preference, o) -> {
        if (o instanceof String) {
            setEpisodeCacheSizeText(UserPreferences.readEpisodeCacheSize((String) o));
        }
        return true;
    });
    ui.findPreference(PreferenceController.PREF_PLAYBACK_SPEED_LAUNCHER).setOnPreferenceClickListener(preference -> {
        VariableSpeedDialog.showDialog(activity);
        return true;
    });
    ui.findPreference(PreferenceController.PREF_GPODNET_SETLOGIN_INFORMATION).setOnPreferenceClickListener(preference -> {
        AuthenticationDialog dialog = new AuthenticationDialog(activity, R.string.pref_gpodnet_setlogin_information_title, false, false, GpodnetPreferences.getUsername(), null) {

            @Override
            protected void onConfirmed(String username, String password, boolean saveUsernamePassword) {
                GpodnetPreferences.setPassword(password);
            }
        };
        dialog.show();
        return true;
    });
    ui.findPreference(PreferenceController.PREF_GPODNET_SYNC).setOnPreferenceClickListener(preference -> {
        GpodnetSyncService.sendSyncIntent(ui.getActivity().getApplicationContext());
        Toast toast = Toast.makeText(ui.getActivity(), R.string.pref_gpodnet_sync_started, Toast.LENGTH_SHORT);
        toast.show();
        return true;
    });
    ui.findPreference(PreferenceController.PREF_GPODNET_FORCE_FULL_SYNC).setOnPreferenceClickListener(preference -> {
        GpodnetPreferences.setLastSubscriptionSyncTimestamp(0L);
        GpodnetPreferences.setLastEpisodeActionsSyncTimestamp(0L);
        GpodnetPreferences.setLastSyncAttempt(false, 0);
        updateLastGpodnetSyncReport(false, 0);
        GpodnetSyncService.sendSyncIntent(ui.getActivity().getApplicationContext());
        Toast toast = Toast.makeText(ui.getActivity(), R.string.pref_gpodnet_sync_started, Toast.LENGTH_SHORT);
        toast.show();
        return true;
    });
    ui.findPreference(PreferenceController.PREF_GPODNET_LOGOUT).setOnPreferenceClickListener(preference -> {
        GpodnetPreferences.logout();
        Toast toast = Toast.makeText(activity, R.string.pref_gpodnet_logout_toast, Toast.LENGTH_SHORT);
        toast.show();
        updateGpodnetPreferenceScreen();
        return true;
    });
    ui.findPreference(PreferenceController.PREF_GPODNET_HOSTNAME).setOnPreferenceClickListener(preference -> {
        GpodnetSetHostnameDialog.createDialog(activity).setOnDismissListener(dialog -> updateGpodnetPreferenceScreen());
        return true;
    });
    ui.findPreference(PreferenceController.PREF_AUTO_FLATTR_PREFS).setOnPreferenceClickListener(preference -> {
        AutoFlattrPreferenceDialog.newAutoFlattrPreferenceDialog(activity, new AutoFlattrPreferenceDialog.AutoFlattrPreferenceDialogInterface() {

            @Override
            public void onCancelled() {
            }

            @Override
            public void onConfirmed(boolean autoFlattrEnabled, float autoFlattrValue) {
                UserPreferences.setAutoFlattrSettings(autoFlattrEnabled, autoFlattrValue);
                checkItemVisibility();
            }
        });
        return true;
    });
    ui.findPreference(UserPreferences.PREF_IMAGE_CACHE_SIZE).setOnPreferenceChangeListener((preference, o) -> {
        if (o instanceof String) {
            int newValue = Integer.parseInt((String) o) * 1024 * 1024;
            if (newValue != UserPreferences.getImageCacheSize()) {
                AlertDialog.Builder dialog = new AlertDialog.Builder(ui.getActivity());
                dialog.setTitle(android.R.string.dialog_alert_title);
                dialog.setMessage(R.string.pref_restart_required);
                dialog.setPositiveButton(android.R.string.ok, null);
                dialog.show();
            }
            return true;
        }
        return false;
    });
    ui.findPreference(PREF_PROXY).setOnPreferenceClickListener(preference -> {
        ProxyDialog dialog = new ProxyDialog(ui.getActivity());
        dialog.createDialog().show();
        return true;
    });
    ui.findPreference(PREF_KNOWN_ISSUES).setOnPreferenceClickListener(preference -> {
        openInBrowser("https://github.com/AntennaPod/AntennaPod/labels/bug");
        return true;
    });
    ui.findPreference(PREF_FAQ).setOnPreferenceClickListener(preference -> {
        openInBrowser("http://antennapod.org/faq.html");
        return true;
    });
    ui.findPreference(PREF_SEND_CRASH_REPORT).setOnPreferenceClickListener(preference -> {
        Intent emailIntent = new Intent(Intent.ACTION_SEND);
        emailIntent.setType("text/plain");
        emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { "Martin.Fietz@gmail.com" });
        emailIntent.putExtra(Intent.EXTRA_SUBJECT, "AntennaPod Crash Report");
        emailIntent.putExtra(Intent.EXTRA_TEXT, "Please describe what you were doing when the app crashed");
        emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(CrashReportWriter.getFile()));
        String intentTitle = ui.getActivity().getString(R.string.send_email);
        ui.getActivity().startActivity(Intent.createChooser(emailIntent, intentTitle));
        return true;
    });
    PreferenceControllerFlavorHelper.setupFlavoredUI(ui);
    buildEpisodeCleanupPreference();
    buildSmartMarkAsPlayedPreference();
    buildAutodownloadSelectedNetworsPreference();
    setSelectedNetworksEnabled(UserPreferences.isEnableAutodownloadWifiFilter());
}
Also used : AlertDialog(android.support.v7.app.AlertDialog) ProxyDialog(de.danoeh.antennapod.dialog.ProxyDialog) AutoFlattrPreferenceDialog(de.danoeh.antennapod.dialog.AutoFlattrPreferenceDialog) HtmlWriter(de.danoeh.antennapod.core.export.html.HtmlWriter) MainActivity(de.danoeh.antennapod.activity.MainActivity) AboutActivity(de.danoeh.antennapod.activity.AboutActivity) StatisticsActivity(de.danoeh.antennapod.activity.StatisticsActivity) PreferenceActivity(de.danoeh.antennapod.activity.PreferenceActivity) DirectoryChooserActivity(de.danoeh.antennapod.activity.DirectoryChooserActivity) Activity(android.app.Activity) StatisticsActivity(de.danoeh.antennapod.activity.StatisticsActivity) Toast(android.widget.Toast) TextWatcher(android.text.TextWatcher) Editable(android.text.Editable) EditText(android.widget.EditText) AuthenticationDialog(de.danoeh.antennapod.dialog.AuthenticationDialog) Intent(android.content.Intent) EditTextPreference(android.preference.EditTextPreference) SuppressLint(android.annotation.SuppressLint) AboutActivity(de.danoeh.antennapod.activity.AboutActivity) OpmlWriter(de.danoeh.antennapod.core.export.opml.OpmlWriter)

Example 2 with EditTextPreference

use of android.support.v7.preference.EditTextPreference in project MPW by shineangelic.

the class SettingsFragment method onCreatePreferences.

@Override
public void onCreatePreferences(Bundle bundle, String s) {
    addPreferencesFromResource(R.xml.preferences);
    // Crashlytics.getInstance().crash();
    final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity());
    mFirebaseAnalytics = FirebaseAnalytics.getInstance(getActivity());
    PoolEnum mPool = PoolEnum.valueOf(prefs.getString("poolEnum", ""));
    CurrencyEnum mCur = CurrencyEnum.valueOf(prefs.getString("curEnum", ""));
    final android.support.v7.preference.SwitchPreferenceCompat globalNotifications = (SwitchPreferenceCompat) findPreference("pref_notify");
    final android.support.v7.preference.EditTextPreference walletAddr = (EditTextPreference) findPreference("wallet_addr");
    final android.support.v7.preference.SwitchPreferenceCompat service = (SwitchPreferenceCompat) findPreference("pref_sync");
    final android.support.v7.preference.ListPreference listFreqPreference = (ListPreference) findPreference("pref_sync_freq");
    final android.support.v7.preference.SwitchPreferenceCompat offlineNotifications = (SwitchPreferenceCompat) findPreference("pref_notify_offline");
    final android.support.v7.preference.SwitchPreferenceCompat blockNotifications = (SwitchPreferenceCompat) findPreference("pref_notify_block");
    final android.support.v7.preference.SwitchPreferenceCompat paymentNotifications = (SwitchPreferenceCompat) findPreference("pref_notify_payment");
    // Service Enabled listener
    Preference.OnPreferenceChangeListener listenerServ = new Preference.OnPreferenceChangeListener() {

        @Override
        public boolean onPreferenceChange(Preference preference, Object newValue) {
            // newValue is the value you choose
            listFreqPreference.setEnabled((Boolean) newValue);
            Boolean nv = (Boolean) newValue;
            FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(getActivity()));
            dispatcher.cancelAll();
            if (nv) {
                Job myJob = MPWService.getJobUpdate(prefs, dispatcher, true);
                int res = dispatcher.schedule(myJob);
                if (res != dispatcher.SCHEDULE_RESULT_SUCCESS) {
                    Toast.makeText(getActivity(), "Cannot enable service. Is Play Services up to date? Notifications won't work", Toast.LENGTH_SHORT).show();
                    return false;
                }
                Log.w(Constants.TAG, "SERVICE ACTIVE, schedule res: " + res);
            }
            // firebase log event
            Bundle bundle = new Bundle();
            bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, nv.toString());
            mFirebaseAnalytics.logEvent("service_active", bundle);
            return true;
        }
    };
    service.setOnPreferenceChangeListener(listenerServ);
    // Service FREQ listener
    Preference.OnPreferenceChangeListener listenerServF = new Preference.OnPreferenceChangeListener() {

        @Override
        public boolean onPreferenceChange(Preference preference, Object newValue) {
            Integer nv = Integer.valueOf((String) newValue);
            // newValue is the value you choose
            Log.w(Constants.TAG, "Changed FREQ setting to: " + nv);
            // pezza perche il val ancora non c'e
            prefs.edit().putString("pref_sync_freq", "" + nv).apply();
            FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(getActivity()));
            Job myJob = MPWService.getJobUpdate(prefs, dispatcher, true);
            dispatcher.schedule(myJob);
            Bundle bundle = new Bundle();
            bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "" + nv);
            mFirebaseAnalytics.logEvent("service_freq", bundle);
            return true;
        }
    };
    listFreqPreference.setOnPreferenceChangeListener(listenerServF);
    // Notification global
    Preference.OnPreferenceChangeListener listener = new Preference.OnPreferenceChangeListener() {

        @Override
        public boolean onPreferenceChange(Preference preference, Object newValue) {
            Log.w(Constants.TAG, "Changed NOTIF setting to: " + newValue);
            Boolean nv = (Boolean) newValue;
            // newValue is the value you choose
            blockNotifications.setEnabled(nv);
            offlineNotifications.setEnabled(nv);
            paymentNotifications.setEnabled(nv);
            Bundle bundle = new Bundle();
            bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "" + nv);
            mFirebaseAnalytics.logEvent("service_notifications", bundle);
            return true;
        }
    };
    globalNotifications.setOnPreferenceChangeListener(listener);
    // Listener x controllo correttezza
    walletAddr.setOnPreferenceChangeListener(new WalletPrefChangeListener(getActivity(), mPool, mCur));
    walletAddr.setSummary(getString(R.string.wallet_info, mPool.toString(), mCur.toString()));
    walletAddr.setDialogTitle(mPool.toString() + " Network Login");
}
Also used : FirebaseJobDispatcher(com.firebase.jobdispatcher.FirebaseJobDispatcher) SharedPreferences(android.content.SharedPreferences) SwitchPreferenceCompat(android.support.v7.preference.SwitchPreferenceCompat) SwitchPreferenceCompat(android.support.v7.preference.SwitchPreferenceCompat) Bundle(android.os.Bundle) GooglePlayDriver(com.firebase.jobdispatcher.GooglePlayDriver) ListPreference(android.support.v7.preference.ListPreference) EditTextPreference(android.support.v7.preference.EditTextPreference) ListPreference(android.support.v7.preference.ListPreference) PoolEnum(it.angelic.mpw.model.enums.PoolEnum) EditTextPreference(android.support.v7.preference.EditTextPreference) ListPreference(android.support.v7.preference.ListPreference) Preference(android.support.v7.preference.Preference) EditTextPreference(android.support.v7.preference.EditTextPreference) Job(com.firebase.jobdispatcher.Job) CurrencyEnum(it.angelic.mpw.model.enums.CurrencyEnum)

Example 3 with EditTextPreference

use of android.support.v7.preference.EditTextPreference in project RespawnIRC-Android by FranckRJ.

the class SettingsFragment method onSharedPreferenceChanged.

@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
    Preference pref = findPreference(key);
    if (pref instanceof EditTextPreference) {
        EditTextPreference editTextPref = (EditTextPreference) pref;
        MinMaxInfos prefMinMax = listOfMinMaxInfos.get(editTextPref.getKey());
        if (prefMinMax != null) {
            int prefValue = 0;
            if (!editTextPref.getText().isEmpty()) {
                try {
                    prefValue = Integer.parseInt(editTextPref.getText());
                } catch (Exception e) {
                    prefValue = 999999999;
                }
            }
            if (prefValue < prefMinMax.min) {
                prefValue = prefMinMax.min;
            } else if (prefValue > prefMinMax.max) {
                prefValue = prefMinMax.max;
            }
            editTextPref.setText(String.valueOf(prefValue));
        }
    } else if (key.equals(getString(R.string.settingsThemeUsed))) {
        ThemeManager.updateThemeUsed();
        if (getActivity() != null) {
            getActivity().recreate();
        }
    } else if (key.equals(getString(R.string.settingsInvertToolbarTextColor))) {
        ThemeManager.updateToolbarTextColor();
        if (getActivity() != null) {
            getActivity().recreate();
        }
    } else if (key.equals(getString(R.string.settingsPrimaryColorOfLightTheme)) || key.equals(getString(R.string.settingsTopicNameAndAccentColorOfLightTheme))) {
        if (getActivity() != null) {
            ThemeManager.updateColorsUsed(getResources());
            getActivity().recreate();
        }
    } else if (key.startsWith("settings.customColor.")) {
        if (getActivity() != null) {
            ThemeManager.updateColorsUsed(getResources());
        }
    }
    updatePrefSummary(pref);
}
Also used : CheckBoxPreference(android.support.v7.preference.CheckBoxPreference) ListPreference(android.support.v7.preference.ListPreference) Preference(android.support.v7.preference.Preference) EditTextPreference(com.takisoft.fix.support.v7.preference.EditTextPreference) EditTextPreference(com.takisoft.fix.support.v7.preference.EditTextPreference)

Example 4 with EditTextPreference

use of android.support.v7.preference.EditTextPreference in project RespawnIRC-Android by FranckRJ.

the class SettingsFragment method updatePrefSummary.

private void updatePrefSummary(Preference pref) {
    if (pref instanceof EditTextPreference) {
        EditTextPreference editTextPref = (EditTextPreference) pref;
        MinMaxInfos prefMinMax = listOfMinMaxInfos.get(editTextPref.getKey());
        if (prefMinMax != null) {
            editTextPref.setSummary("Entre " + String.valueOf(prefMinMax.min) + " et " + String.valueOf(prefMinMax.max) + " : " + editTextPref.getText());
        }
    }
}
Also used : EditTextPreference(com.takisoft.fix.support.v7.preference.EditTextPreference)

Example 5 with EditTextPreference

use of android.support.v7.preference.EditTextPreference in project RespawnIRC-Android by FranckRJ.

the class SettingsFragment method updatePrefDefaultValue.

/* Le but de la clef temporaire est de ne pas sauvegarder l'option par défaut si c'est celle ci
     * qui est retourné par "PrefsManager.getX()". La clef temporaire n'est pas vide pour empêcher
     * des possibles crash (des histoires de requireKey() etc). Elle est unique par type de pref pour
     * ne pas causer de crash lors de l'assignation d'un string à ce qui était précédement un bool.
     * La persistance est temporairement à false pour plus de sécurité, au cas où, dans le doute,
     * mais ça reste plutôt assez moche comme solution au final. */
private static void updatePrefDefaultValue(Preference pref) {
    String realPrefKey = pref.getKey();
    pref.setPersistent(false);
    if (pref instanceof CheckBoxPreference) {
        pref.setKey("tmpKeyBool");
        CheckBoxPreference checkBoxPref = (CheckBoxPreference) pref;
        checkBoxPref.setChecked(PrefsManager.getBool(realPrefKey));
    } else if (pref instanceof SwitchPreferenceCompat) {
        pref.setKey("tmpKeyBool");
        SwitchPreferenceCompat switchPref = (SwitchPreferenceCompat) pref;
        switchPref.setChecked(PrefsManager.getBool(realPrefKey));
    } else if (pref instanceof EditTextPreference) {
        pref.setKey("tmpKeyString");
        EditTextPreference editTextPref = (EditTextPreference) pref;
        editTextPref.setText(PrefsManager.getString(realPrefKey));
    } else if (pref instanceof ListPreference) {
        pref.setKey("tmpKeyString");
        ListPreference listPref = (ListPreference) pref;
        listPref.setValue(PrefsManager.getString(realPrefKey));
    }
    pref.setPersistent(true);
    pref.setKey(realPrefKey);
}
Also used : CheckBoxPreference(android.support.v7.preference.CheckBoxPreference) SwitchPreferenceCompat(android.support.v7.preference.SwitchPreferenceCompat) EditTextPreference(com.takisoft.fix.support.v7.preference.EditTextPreference) ListPreference(android.support.v7.preference.ListPreference)

Aggregations

EditTextPreference (android.support.v7.preference.EditTextPreference)11 Preference (android.support.v7.preference.Preference)10 ListPreference (android.support.v7.preference.ListPreference)8 AlertDialog (android.support.v7.app.AlertDialog)3 CheckBoxPreference (android.support.v7.preference.CheckBoxPreference)3 SwitchPreferenceCompat (android.support.v7.preference.SwitchPreferenceCompat)3 TwoStatePreference (android.support.v7.preference.TwoStatePreference)3 EditTextPreference (com.takisoft.fix.support.v7.preference.EditTextPreference)3 ConfigKey (cx.ring.model.ConfigKey)3 SummaryEditTextPreference (i2p.bote.android.config.util.SummaryEditTextPreference)3 Intent (android.content.Intent)2 SharedPreferences (android.content.SharedPreferences)2 Bundle (android.os.Bundle)2 EditTextPreference (android.preference.EditTextPreference)2 Toast (android.widget.Toast)2 EditTextIntegerPreference (cx.ring.views.EditTextIntegerPreference)2 PasswordPreference (cx.ring.views.PasswordPreference)2 File (java.io.File)2 SuppressLint (android.annotation.SuppressLint)1 Activity (android.app.Activity)1