Tadashi G. Takaoka | c206d04 | 2012-04-13 19:53:44 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 The Android Open Source Project |
| 3 | * |
Tadashi G. Takaoka | 8aa9963 | 2013-01-21 21:52:57 +0900 | [diff] [blame^] | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
Tadashi G. Takaoka | c206d04 | 2012-04-13 19:53:44 +0900 | [diff] [blame] | 7 | * |
Tadashi G. Takaoka | 8aa9963 | 2013-01-21 21:52:57 +0900 | [diff] [blame^] | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Tadashi G. Takaoka | c206d04 | 2012-04-13 19:53:44 +0900 | [diff] [blame] | 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
Tadashi G. Takaoka | 8aa9963 | 2013-01-21 21:52:57 +0900 | [diff] [blame^] | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
Tadashi G. Takaoka | c206d04 | 2012-04-13 19:53:44 +0900 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | package com.android.inputmethod.latin; |
| 18 | |
| 19 | import android.content.Intent; |
Tadashi G. Takaoka | c206d04 | 2012-04-13 19:53:44 +0900 | [diff] [blame] | 20 | import android.preference.PreferenceActivity; |
| 21 | |
Tadashi G. Takaoka | a28a05e | 2012-09-27 18:16:16 +0900 | [diff] [blame] | 22 | public final class SettingsActivity extends PreferenceActivity { |
Tadashi G. Takaoka | cbee8a3 | 2013-01-08 15:41:46 +0900 | [diff] [blame] | 23 | private static final String DEFAULT_FRAGMENT = SettingsFragment.class.getName(); |
Tadashi G. Takaoka | c27fe62 | 2012-04-13 16:41:24 +0900 | [diff] [blame] | 24 | |
Tadashi G. Takaoka | c206d04 | 2012-04-13 19:53:44 +0900 | [diff] [blame] | 25 | @Override |
| 26 | public Intent getIntent() { |
Tadashi G. Takaoka | c27fe62 | 2012-04-13 16:41:24 +0900 | [diff] [blame] | 27 | final Intent intent = super.getIntent(); |
| 28 | if (!intent.hasExtra(EXTRA_SHOW_FRAGMENT)) { |
| 29 | intent.putExtra(EXTRA_SHOW_FRAGMENT, DEFAULT_FRAGMENT); |
| 30 | } |
| 31 | intent.putExtra(EXTRA_NO_HEADERS, true); |
| 32 | return intent; |
Tadashi G. Takaoka | c206d04 | 2012-04-13 19:53:44 +0900 | [diff] [blame] | 33 | } |
Tadashi G. Takaoka | c206d04 | 2012-04-13 19:53:44 +0900 | [diff] [blame] | 34 | } |