165a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane/*
265a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane * Copyright (C) 2014 The Android Open Source Project
365a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane *
465a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane * Licensed under the Apache License, Version 2.0 (the "License");
565a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane * you may not use this file except in compliance with the License.
665a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane * You may obtain a copy of the License at
765a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane *
865a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane *      http://www.apache.org/licenses/LICENSE-2.0
965a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane *
1065a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane * Unless required by applicable law or agreed to in writing, software
1165a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane * distributed under the License is distributed on an "AS IS" BASIS,
1265a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1365a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane * See the License for the specific language governing permissions and
1465a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane * limitations under the License.
1565a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane */
1665a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane
1765a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lanepackage com.android.tv.settings.system;
1865a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane
19daa191c3bd054122a9f065b3ebaaec7492310f5dTony Mantlerimport android.app.Fragment;
2043e50b4e92cee6bf2ae2635b484eea07df6e8dbaTony Mantler
2143e50b4e92cee6bf2ae2635b484eea07df6e8dbaTony Mantlerimport com.android.tv.settings.BaseSettingsFragment;
22daa191c3bd054122a9f065b3ebaaec7492310f5dTony Mantlerimport com.android.tv.settings.TvSettingsActivity;
2365a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane
24daa191c3bd054122a9f065b3ebaaec7492310f5dTony Mantlerpublic class LanguageActivity extends TvSettingsActivity {
2565a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane
2665a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane    @Override
27daa191c3bd054122a9f065b3ebaaec7492310f5dTony Mantler    protected Fragment createSettingsFragment() {
28daa191c3bd054122a9f065b3ebaaec7492310f5dTony Mantler        return SettingsFragment.newInstance();
2965a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane    }
3065a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane
3143e50b4e92cee6bf2ae2635b484eea07df6e8dbaTony Mantler    public static class SettingsFragment extends BaseSettingsFragment {
3265a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane
33eb286b55891542c4e8fb47eeafa8a0c9cd974178Tony Mantler        public static SettingsFragment newInstance() {
34eb286b55891542c4e8fb47eeafa8a0c9cd974178Tony Mantler            return new SettingsFragment();
3565a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane        }
3665a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane
37eb286b55891542c4e8fb47eeafa8a0c9cd974178Tony Mantler        @Override
38eb286b55891542c4e8fb47eeafa8a0c9cd974178Tony Mantler        public void onPreferenceStartInitialScreen() {
39eb286b55891542c4e8fb47eeafa8a0c9cd974178Tony Mantler            final LanguageFragment fragment = LanguageFragment.newInstance();
40eb286b55891542c4e8fb47eeafa8a0c9cd974178Tony Mantler            startPreferenceFragment(fragment);
4165a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane        }
4265a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane    }
4365a5a7d84ad9b5324ae53eda526e39e513473af7Christopher Lane}
44