Add a new activity for adding a user dictionary word
This is step 1. Bug: 5306641 Change-Id: I69727f05df8f3455e6e734140f712ccf7881e5be
This commit is contained in:
@@ -450,7 +450,6 @@
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<action android:name="android.settings.USER_DICTIONARY_SETTINGS" />
|
||||
<action android:name="com.android.settings.USER_DICTIONARY_INSERT" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.VOICE_LAUNCH" />
|
||||
</intent-filter>
|
||||
@@ -464,6 +463,16 @@
|
||||
android:value="com.android.settings.Settings$InputMethodAndLanguageSettingsActivity" />
|
||||
</activity>
|
||||
|
||||
<activity android:name=".inputmethod.UserDictionaryAddWordActivity"
|
||||
android:label="@string/user_dict_settings_titlebar"
|
||||
android:theme="@android:style/Theme.Holo.Dialog.NoActionBar">
|
||||
<intent-filter>
|
||||
<action android:name="com.android.settings.USER_DICTIONARY_INSERT" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.VOICE_LAUNCH" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- Keep compatibility with old shortcuts. -->
|
||||
<activity-alias android:name="UserDictionarySettings"
|
||||
android:label="@string/user_dict_settings_titlebar"
|
||||
|
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C) 2011 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.R;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class UserDictionaryAddWordActivity extends Activity {
|
||||
@Override
|
||||
public void onCreate(final Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.dialog_edittext);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user