1 package com.koushikdutta.superuser;
3 import android.content.Context;
4 import android.content.res.Configuration;
5 import android.os.Bundle;
6 import android.view.ContextThemeWrapper;
7 import android.view.LayoutInflater;
8 import android.view.View;
9 import android.view.ViewGroup;
11 import com.koushikdutta.widgets.NativeFragment;
14 public class SettingsNativeFragment extends NativeFragment<SettingsFragmentInternal> {
15 ContextThemeWrapper mWrapper;
16 public Context getContext(Context ctx) {
19 mWrapper = new ContextThemeWrapper(ctx, R.style.SuperuserDark);
24 public SettingsFragmentInternal createFragmentInterface() {
25 return new SettingsFragmentInternal(this) {
27 protected void setPadding() {
29 getListView().setPadding(0, 0, 0, 0);
32 public Context getContext() {
33 return SettingsNativeFragment.this.getContext(super.getContext());
39 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
40 return super.onCreateView((LayoutInflater)getContext(inflater.getContext()).getSystemService(Context.LAYOUT_INFLATER_SERVICE), container, savedInstanceState);