2013-01-21 12:52:57 +00:00
|
|
|
/*
|
2011-08-12 08:18:32 +00:00
|
|
|
* Copyright (C) 2011 The Android Open Source Project
|
|
|
|
*
|
2013-01-21 12:52:57 +00:00
|
|
|
* 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
|
2011-08-12 08:18:32 +00:00
|
|
|
*
|
2013-01-21 12:52:57 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2011-08-12 08:18:32 +00:00
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
2013-01-21 12:52:57 +00:00
|
|
|
* 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.
|
2011-08-12 08:18:32 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package com.android.inputmethod.latin.spellcheck;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.preference.PreferenceFragment;
|
2013-03-22 05:53:03 +00:00
|
|
|
import android.preference.PreferenceScreen;
|
2011-08-12 08:18:32 +00:00
|
|
|
|
2011-10-04 01:54:23 +00:00
|
|
|
import com.android.inputmethod.latin.R;
|
2013-07-05 09:23:22 +00:00
|
|
|
import com.android.inputmethod.latin.utils.ApplicationUtils;
|
2011-10-04 01:54:23 +00:00
|
|
|
|
2011-08-12 08:18:32 +00:00
|
|
|
/**
|
|
|
|
* Preference screen.
|
|
|
|
*/
|
2012-09-27 09:16:16 +00:00
|
|
|
public final class SpellCheckerSettingsFragment extends PreferenceFragment {
|
2011-08-12 08:18:32 +00:00
|
|
|
/**
|
|
|
|
* Empty constructor for fragment generation.
|
|
|
|
*/
|
|
|
|
public SpellCheckerSettingsFragment() {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onActivityCreated(Bundle savedInstanceState) {
|
|
|
|
super.onActivityCreated(savedInstanceState);
|
|
|
|
addPreferencesFromResource(R.xml.spell_checker_settings);
|
2013-03-22 05:53:03 +00:00
|
|
|
final PreferenceScreen preferenceScreen = getPreferenceScreen();
|
|
|
|
if (preferenceScreen != null) {
|
2013-07-05 09:23:22 +00:00
|
|
|
preferenceScreen.setTitle(ApplicationUtils.getAcitivityTitleResId(
|
2013-03-22 05:53:03 +00:00
|
|
|
getActivity(), SpellCheckerSettingsActivity.class));
|
|
|
|
}
|
2011-08-12 08:18:32 +00:00
|
|
|
}
|
|
|
|
}
|