[XPERIA X10 Android Development] alzbac:
Maybe someone can help

I tryed to get it working on achotjan's rom but settins display FC

Here is original displaysettings.smali which works on FXP044

.class public Lcom/android/settings/DisplaySettings;
.super Landroid/preference/PreferenceActivity;
.source "DisplaySettings.java"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceChangeListener;

# instance fields
.field private mAccelerometer:Landroid/preference/CheckBoxPreference;

.field private mAnimationScales:[F

.field private mAnimations:Landroid/preference/ListPreference;

.field private mSwIqiEnabled:Landroid/preference/CheckBoxPreference;

.field private mWindowManager:Landroid/view/IWindowManager;

# direct methods
.method public constructor <init>()V
.locals 0

.prologue
.line 47
invoke-direct {p0}, Landroid/preference/PreferenceActivity;-><init>()V

return-void
.end method

.method private disableUnusableTimeouts(Landroid/preference/ListPreference;)V
.locals 13
.parameter "screenTimeoutPreference"

.prologue
.line 100
const-string v11, "device_policy"

invoke-virtual {p0, v11}, Lcom/android/settings/DisplaySettings;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v0

check-cast v0, Landroid/app/admin/DevicePolicyManager;

.line 102
.local v0, dpm:Landroid/app/admin/DevicePolicyManager;
if-eqz v0, :cond_0

const/4 v11, 0x0

invoke-virtual {v0, v11}, Landroid/app/admin/DevicePolicyManager;->getMaximumTimeToLock(Landroid/content/ComponentName;)J

move-result-wide v11

move-wide v3, v11

.line 103
.local v3, maxTimeout:J
:goto_0
const-wide/16 v11, 0x0

cmp-long v11, v3, v11

if-nez v11, :cond_1

.line 132
.end local p0
:goto_1
return-void

.line 102
.end local v3 #maxTimeout:J
.restart local p0
:cond_0
const-wide/16 v11, 0x0

move-wide v3, v11

goto :goto_0

.line 106
.restart local v3 #maxTimeout:J
:cond_1
invoke-virtual {p1}, Landroid/preference/ListPreference;->getEntries()[Ljava/lang/CharSequence;

move-result-object v1

.line 107
.local v1, entries:[Ljava/lang/CharSequence;
invoke-virtual {p1}, Landroid/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence;

move-result-object v10

.line 108
.local v10, values:[Ljava/lang/CharSequence;
new-instance v5, Ljava/util/ArrayList;

invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V

.line 109
.local v5, revisedEntries:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/lang/CharSequence;>;"
new-instance v6, Ljava/util/ArrayList;

invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

.line 110
.local v6, revisedValues:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/lang/CharSequence;>;"
const/4 v2, 0x0

.local v2, i:I
:goto_2
array-length v11, v10

if-ge v2, v11, :cond_3

.line 111
aget-object v11, v10, v2

invoke-virtual {v11}, Ljava/lang/Object;->toString()Ljava/lang/String;

move-result-object v11

invoke-static {v11}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;

move-result-object v11

invoke-virtual {v11}, Ljava/lang/Long;->longValue()J

move-result-wide v7

.line 112
.local v7, timeout:J
cmp-long v11, v7, v3

if-gtz v11, :cond_2

.line 113
aget-object v11, v1, v2

invoke-virtual {v5, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

.line 114
aget-object v11, v10, v2

invoke-virtual {v6, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

.line 110
:cond_2
add-int/lit8 v2, v2, 0x1

goto :goto_2

.line 117
.end local v7 #timeout:J
:cond_3
invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

move-result v11

array-length v12, v1

if-ne v11, v12, :cond_4

invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

move-result v11

array-length v12, v10

if-eq v11, v12, :cond_5

.line 118
:cond_4
invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

move-result v11

new-array v11, v11, [Ljava/lang/CharSequence;

invoke-virtual {v5, v11}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

move-result-object p0

.end local p0
check-cast p0, [Ljava/lang/CharSequence;

invoke-virtual {p1, p0}, Landroid/preference/ListPreference;->setEntries([Ljava/lang/CharSequence;)V

.line 120
invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

move-result v11

new-array v11, v11, [Ljava/lang/CharSequence;

invoke-virtual {v6, v11}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

move-result-object p0

check-cast p0, [Ljava/lang/CharSequence;

invoke-virtual {p1, p0}, Landroid/preference/ListPreference;->setEntryValues([Ljava/lang/CharSequence;)V

.line 122
invoke-virtual {p1}, Landroid/preference/ListPreference;->getValue()Ljava/lang/String;

move-result-object v11

invoke-static {v11}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v11

invoke-virtual {v11}, Ljava/lang/Integer;->intValue()I

move-result v9

.line 123
.local v9, userPreference:I
int-to-long v11, v9

cmp-long v11, v11, v3

if-gtz v11, :cond_5

.line 124
invoke-static {v9}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

move-result-object v11

invoke-virtual {p1, v11}, Landroid/preference/ListPreference;->setValue(Ljava/lang/String;)V

.line 131
.end local v9 #userPreference:I
:cond_5
invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

move-result v11

if-lez v11, :cond_6

const/4 v11, 0x1

:goto_3
invoke-virtual {p1, v11}, Landroid/preference/ListPreference;->setEnabled(Z)V

goto/16 :goto_1

:cond_6
const/4 v11, 0x0

goto :goto_3
.end method

.method private updateAnimationsSummary(Ljava/lang/Object;)V
.locals 5
.parameter "value"

.prologue
.line 173
invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getResources()Landroid/content/res/Resources;

move-result-object v3

const v4, 0x7f050003

invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getTextArray(I)[Ljava/lang/CharSequence;

move-result-object v1

.line 174
.local v1, summaries:[Ljava/lang/CharSequence;
iget-object v3, p0, Lcom/android/settings/DisplaySettings;->mAnimations:Landroid/preference/ListPreference;

invoke-virtual {v3}, Landroid/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence;

move-result-object v2

.line 175
.local v2, values:[Ljava/lang/CharSequence;
const/4 v0, 0x0

.local v0, i:I
:goto_0
array-length v3, v2

if-ge v0, v3, :cond_0

.line 178
aget-object v3, v2, v0

invoke-virtual {v3, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

move-result v3

if-eqz v3, :cond_1

.line 179
iget-object v3, p0, Lcom/android/settings/DisplaySettings;->mAnimations:Landroid/preference/ListPreference;

aget-object v4, v1, v0

invoke-virtual {v3, v4}, Landroid/preference/ListPreference;->setSummary(Ljava/lang/CharSequence;)V

.line 183
:cond_0
return-void

.line 175
:cond_1
add-int/lit8 v0, v0, 0x1

goto :goto_0
.end method

.method private updateState(Z)V
.locals 11
.parameter "force"

.prologue
const/high16 v8, 0x3f00

const/4 v10, 0x1

const/4 v9, 0x0

.line 142
const/4 v1, 0x0

.line 144
.local v1, animations:I
:try_start_0
iget-object v6, p0, Lcom/android/settings/DisplaySettings;->mWindowManager:Landroid/view/IWindowManager;

invoke-interface {v6}, Landroid/view/IWindowManager;->getAnimationScales()[F

move-result-object v6

iput-object v6, p0, Lcom/android/settings/DisplaySettings;->mAnimationScales:[F
:try_end_0
.catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

.line 147
:goto_0
iget-object v6, p0, Lcom/android/settings/DisplaySettings;->mAnimationScales:[F

if-eqz v6, :cond_1

.line 148
iget-object v6, p0, Lcom/android/settings/DisplaySettings;->mAnimationScales:[F

array-length v6, v6

if-lt v6, v10, :cond_0

.line 149
iget-object v6, p0, Lcom/android/settings/DisplaySettings;->mAnimationScales:[F

aget v6, v6, v9

add-float/2addr v6, v8

float-to-int v6, v6

rem-int/lit8 v1, v6, 0xa

.line 151
:cond_0
iget-object v6, p0, Lcom/android/settings/DisplaySettings;->mAnimationScales:[F

array-length v6, v6

const/4 v7, 0x2

if-lt v6, v7, :cond_1

.line 152
iget-object v6, p0, Lcom/android/settings/DisplaySettings;->mAnimationScales:[F

aget v6, v6, v10

add-float/2addr v6, v8

float-to-int v6, v6

and-int/lit8 v6, v6, 0x7

mul-int/lit8 v6, v6, 0xa

add-int/2addr v1, v6

.line 155
:cond_1
const/4 v4, 0x0

.line 156
.local v4, idx:I
const/4 v2, 0x0

.line 157
.local v2, best:I
iget-object v6, p0, Lcom/android/settings/DisplaySettings;->mAnimations:Landroid/preference/ListPreference;

invoke-virtual {v6}, Landroid/preference/ListPreference;->getEntryValues()[Ljava/lang/CharSequence;

move-result-object v0

.line 158
.local v0, aents:[Ljava/lang/CharSequence;
const/4 v3, 0x0

.local v3, i:I
:goto_1
array-length v6, v0

if-ge v3, v6, :cond_3

.line 159
aget-object v6, v0, v3

invoke-virtual {v6}, Ljava/lang/Object;->toString()Ljava/lang/String;

move-result-object v6

invoke-static {v6}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v5

.line 160
.local v5, val:I
if-gt v5, v1, :cond_2

if-le v5, v2, :cond_2

.line 161
move v2, v5

.line 162
move v4, v3

.line 158
:cond_2
add-int/lit8 v3, v3, 0x1

goto :goto_1

.line 165
.end local v5 #val:I
:cond_3
iget-object v6, p0, Lcom/android/settings/DisplaySettings;->mAnimations:Landroid/preference/ListPreference;

invoke-virtual {v6, v4}, Landroid/preference/ListPreference;->setValueIndex(I)V

.line 166
iget-object v6, p0, Lcom/android/settings/DisplaySettings;->mAnimations:Landroid/preference/ListPreference;

invoke-virtual {v6}, Landroid/preference/ListPreference;->getValue()Ljava/lang/String;

move-result-object v6

invoke-direct {p0, v6}, Lcom/android/settings/DisplaySettings;->updateAnimationsSummary(Ljava/lang/Object;)V

.line 167
iget-object v6, p0, Lcom/android/settings/DisplaySettings;->mAccelerometer:Landroid/preference/CheckBoxPreference;

invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v7

const-string v8, "accelerometer_rotation"

invoke-static {v7, v8, v9}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v7

if-eqz v7, :cond_4

move v7, v10

:goto_2
invoke-virtual {v6, v7}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

.line 170
return-void

:cond_4
move v7, v9

.line 167
goto :goto_2

.line 145
.end local v0 #aents:[Ljava/lang/CharSequence;
.end local v2 #best:I
.end local v3 #i:I
.end local v4 #idx:I
:catch_0
move-exception v6

goto :goto_0
.end method

# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
.locals 6
.parameter "savedInstanceState"

.prologue
const/4 v4, 0x0

const-string v5, "swiqi_strings_swiqi_txt"

.line 70
invoke-super {p0, p1}, Landroid/preference/PreferenceActivity;->onCreate(Landroid/os/Bundle;)V

.line 71
invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

.line 72
.local v0, resolver:Landroid/content/ContentResolver;
const-string v2, "window"

invoke-static {v2}, Landroid/os/ServiceManager;->getService(Ljava/lang/String;)Landroid/os/IBinder;

move-result-object v2

invoke-static {v2}, Landroid/view/IWindowManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/IWindowManager;

move-result-object v2

iput-object v2, p0, Lcom/android/settings/DisplaySettings;->mWindowManager:Landroid/view/IWindowManager;

.line 74
const v2, 0x7f04000f

invoke-virtual {p0, v2}, Lcom/android/settings/DisplaySettings;->addPreferencesFromResource(I)V

.line 76
const-string v2, "animations"

invoke-virtual {p0, v2}, Lcom/android/settings/DisplaySettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v2

check-cast v2, Landroid/preference/ListPreference;

iput-object v2, p0, Lcom/android/settings/DisplaySettings;->mAnimations:Landroid/preference/ListPreference;

.line 77
iget-object v2, p0, Lcom/android/settings/DisplaySettings;->mAnimations:Landroid/preference/ListPreference;

invoke-virtual {v2, p0}, Landroid/preference/ListPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

.line 78
const-string v2, "accelerometer"

invoke-virtual {p0, v2}, Lcom/android/settings/DisplaySettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v2

check-cast v2, Landroid/preference/CheckBoxPreference;

iput-object v2, p0, Lcom/android/settings/DisplaySettings;->mAccelerometer:Landroid/preference/CheckBoxPreference;

.line 79
iget-object v2, p0, Lcom/android/settings/DisplaySettings;->mAccelerometer:Landroid/preference/CheckBoxPreference;

invoke-virtual {v2, v4}, Landroid/preference/CheckBoxPreference;->setPersistent(Z)V

.line 81
const-string v2, "screen_timeout"

invoke-virtual {p0, v2}, Lcom/android/settings/DisplaySettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v1

check-cast v1, Landroid/preference/ListPreference;

.line 83
.local v1, screenTimeoutPreference:Landroid/preference/ListPreference;
const-string v2, "screen_off_timeout"

const/16 v3, 0x7530

invoke-static {v0, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

move-result-object v2

invoke-virtual {v1, v2}, Landroid/preference/ListPreference;->setValue(Ljava/lang/String;)V

.line 85
invoke-virtual {v1, p0}, Landroid/preference/ListPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

.line 86
invoke-direct {p0, v1}, Lcom/android/settings/DisplaySettings;->disableUnusableTimeouts(Landroid/preference/ListPreference;)V

.line 88
const-string v2, "ro.service.swiqi.supported"

invoke-static {v2, v4}, Landroid/os/SystemProperties;->getBoolean(Ljava/lang/String;Z)Z

move-result v2

if-eqz v2, :cond_1

.line 89
const-string v2, "swiqi_strings_swiqi_txt"

invoke-virtual {p0, v5}, Lcom/android/settings/DisplaySettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v2

check-cast v2, Landroid/preference/CheckBoxPreference;

iput-object v2, p0, Lcom/android/settings/DisplaySettings;->mSwIqiEnabled:Landroid/preference/CheckBoxPreference;

.line 90
iget-object v2, p0, Lcom/android/settings/DisplaySettings;->mSwIqiEnabled:Landroid/preference/CheckBoxPreference;

invoke-virtual {v2, v4}, Landroid/preference/CheckBoxPreference;->setPersistent(Z)V

.line 91
iget-object v2, p0, Lcom/android/settings/DisplaySettings;->mSwIqiEnabled:Landroid/preference/CheckBoxPreference;

const-string v3, "persist.service.swiqi.enable"

invoke-static {v3, v4}, Landroid/os/SystemProperties;->getInt(Ljava/lang/String;I)I

move-result v3

if-eqz v3, :cond_0

const/4 v3, 0x1

:goto_0
invoke-virtual {v2, v3}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

.line 97
:goto_1
return-void

:cond_0
move v3, v4

.line 91
goto :goto_0

.line 94
:cond_1
invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

move-result-object v2

const-string v3, "swiqi_strings_swiqi_txt"

invoke-virtual {p0, v5}, Lcom/android/settings/DisplaySettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v3

invoke-virtual {v2, v3}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z

.line 95
const/4 v2, 0x0

iput-object v2, p0, Lcom/android/settings/DisplaySettings;->mSwIqiEnabled:Landroid/preference/CheckBoxPreference;

goto :goto_1
.end method

.method public onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z
.locals 9
.parameter "preference"
.parameter "objValue"

.prologue
const/4 v7, 0x1

const-string v8, "DisplaySettings"

.line 199
invoke-virtual {p1}, Landroid/preference/Preference;->getKey()Ljava/lang/String;

move-result-object v2

.line 200
.local v2, key:Ljava/lang/String;
const-string v4, "animations"

invoke-virtual {v4, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v4

if-eqz v4, :cond_2

.line 202
:try_start_0
move-object v0, p2

check-cast v0, Ljava/lang/String;

move-object v4, v0

invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v3

.line 203
.local v3, value:I
iget-object v4, p0, Lcom/android/settings/DisplaySettings;->mAnimationScales:[F

array-length v4, v4

if-lt v4, v7, :cond_0

.line 204
iget-object v4, p0, Lcom/android/settings/DisplaySettings;->mAnimationScales:[F

const/4 v5, 0x0

rem-int/lit8 v6, v3, 0xa

int-to-float v6, v6

aput v6, v4, v5

.line 206
:cond_0
iget-object v4, p0, Lcom/android/settings/DisplaySettings;->mAnimationScales:[F

array-length v4, v4

const/4 v5, 0x2

if-lt v4, v5, :cond_1

.line 207
iget-object v4, p0, Lcom/android/settings/DisplaySettings;->mAnimationScales:[F

const/4 v5, 0x1

div-int/lit8 v6, v3, 0xa

rem-int/lit8 v6, v6, 0xa

int-to-float v6, v6

aput v6, v4, v5
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0

.line 210
:cond_1
:try_start_1
iget-object v4, p0, Lcom/android/settings/DisplaySettings;->mWindowManager:Landroid/view/IWindowManager;

iget-object v5, p0, Lcom/android/settings/DisplaySettings;->mAnimationScales:[F

invoke-interface {v4, v5}, Landroid/view/IWindowManager;->setAnimationScales([F)V
:try_end_1
.catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_2
.catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_0

.line 213
:goto_0
:try_start_2
invoke-direct {p0, p2}, Lcom/android/settings/DisplaySettings;->updateAnimationsSummary(Ljava/lang/Object;)V
:try_end_2
.catch Ljava/lang/NumberFormatException; {:try_start_2 .. :try_end_2} :catch_0

.line 219
.end local v3 #value:I
:cond_2
:goto_1
const-string v4, "screen_timeout"

invoke-virtual {v4, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v4

if-eqz v4, :cond_3

.line 220
check-cast p2, Ljava/lang/String;

.end local p2
invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v3

.line 222
.restart local v3 #value:I
:try_start_3
invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v4

const-string v5, "screen_off_timeout"

invoke-static {v4, v5, v3}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z
:try_end_3
.catch Ljava/lang/NumberFormatException; {:try_start_3 .. :try_end_3} :catch_1

.line 229
.end local v3 #value:I
:cond_3
:goto_2
return v7

.line 214
.restart local p2
:catch_0
move-exception v4

move-object v1, v4

.line 215
.local v1, e:Ljava/lang/NumberFormatException;
const-string v4, "DisplaySettings"

const-string v4, "could not persist animation setting"

invoke-static {v8, v4, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

goto :goto_1

.line 224
.end local v1 #e:Ljava/lang/NumberFormatException;
.end local p2
.restart local v3 #value:I
:catch_1
move-exception v4

move-object v1, v4

.line 225
.restart local v1 #e:Ljava/lang/NumberFormatException;
const-string v4, "DisplaySettings"

const-string v4, "could not persist screen timeout setting"

invoke-static {v8, v4, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

goto :goto_2

.line 211
.end local v1 #e:Ljava/lang/NumberFormatException;
.restart local p2
:catch_2
move-exception v4

goto :goto_0
.end method

.method public onPreferenceTreeClick(Landroid/preference/PreferenceScreen;Landroid/preference/Preference;)Z
.locals 4
.parameter "preferenceScreen"
.parameter "preference"

.prologue
const/4 v3, 0x1

.line 187
iget-object v0, p0, Lcom/android/settings/DisplaySettings;->mAccelerometer:Landroid/preference/CheckBoxPreference;

if-ne p2, v0, :cond_2

.line 188
invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "accelerometer_rotation"

iget-object v2, p0, Lcom/android/settings/DisplaySettings;->mAccelerometer:Landroid/preference/CheckBoxPreference;

invoke-virtual {v2}, Landroid/preference/CheckBoxPreference;->isChecked()Z

move-result v2

if-eqz v2, :cond_1

move v2, v3

:goto_0
invoke-static {v0, v1, v2}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

.line 195
:cond_0
:goto_1
return v3

.line 188
:cond_1
const/4 v2, 0x0

goto :goto_0

.line 191
:cond_2
iget-object v0, p0, Lcom/android/settings/DisplaySettings;->mSwIqiEnabled:Landroid/preference/CheckBoxPreference;

if-eqz v0, :cond_0

iget-object v0, p0, Lcom/android/settings/DisplaySettings;->mSwIqiEnabled:Landroid/preference/CheckBoxPreference;

if-ne p2, v0, :cond_0

.line 193
const-string v0, "persist.service.swiqi.enable"

iget-object v1, p0, Lcom/android/settings/DisplaySettings;->mSwIqiEnabled:Landroid/preference/CheckBoxPreference;

invoke-virtual {v1}, Landroid/preference/CheckBoxPreference;->isChecked()Z

move-result v1

if-eqz v1, :cond_3

const-string v1, "1"

:goto_2
invoke-static {v0, v1}, Landroid/os/SystemProperties;->set(Ljava/lang/String;Ljava/lang/String;)V

goto :goto_1

:cond_3
const-string v1, "0"

goto :goto_2
.end method

.method protected onResume()V
.locals 1

.prologue
.line 136
invoke-super {p0}, Landroid/preference/PreferenceActivity;->onResume()V

.line 138
const/4 v0, 0x1

invoke-direct {p0, v0}, Lcom/android/settings/DisplaySettings;->updateState(Z)V

.line 139
return-void
.end method