Remove the locale spinner and show the current language

Bug: 8976598
Change-Id: I092141d0cc5c6d7af499ab8ceb69275923180e37
This commit is contained in:
Satoshi Kataoka
2013-07-18 14:54:53 +09:00
parent f948ecdc61
commit a5c08c9a6f
6 changed files with 45 additions and 26 deletions

View File

@@ -0,0 +1,34 @@
/*
* 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 com.android.settings.inputmethod;
import com.android.settings.Utils;
import android.content.Context;
import java.util.Locale;
/**
* Utilities of the user dictionary settings
*/
public class UserDictionarySettingsUtils {
public static String getLocaleDisplayName(Context context, String localeStr) {
final Locale locale = Utils.createLocaleFromString(localeStr);
final Locale systemLocale = context.getResources().getConfiguration().locale;
return locale.getDisplayName(systemLocale);
}
}