[Galaxy S II Android Development] remuntada78:
I'm trying to port lockscreen notifications but i've a problem in the .method public onCreate(Landroid/os/Bundle;)V

.method public onCreate(Landroid/os/Bundle;)V
.locals 14

const/high16 v13, 0x42c8

const/4 v10, 0x0

const/4 v9, 0x1

invoke-super {p0, p1}, Lcom/android/settings/SettingsPreferenceFragment;->onCreate(Landroid/os/Bundle;)V

const v8, 0x7f07008e

invoke-virtual {p0, v8}, Lcom/android/settings/AOSPAL/LockscreenNotifications;->addPreferencesFromResource(I)V

invoke-virtual {p0}, Lcom/android/settings/AOSPAL/LockscreenNotifications;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

move-result-object v7

invoke-virtual {p0}, Lcom/android/settings/AOSPAL/LockscreenNotifications;->getActivity()Landroid/app/Activity;

move-result-object v8

invoke-virtual {v8}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v8, "lockscreen_notifications"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/CheckBoxPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

const-string v8, "lockscreen_notifications"

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

move-result v8

if-ne v8, v9, :cond_3

move v8, v9

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

invoke-direct {p0}, Lcom/android/settings/AOSPAL/LockscreenNotifications;->updateLNPrefs()V

const-string v8, "pocket_mode"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/CheckBoxPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mPocketMode:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mPocketMode:Landroid/preference/CheckBoxPreference;

const-string v8, "lockscreen_notifications_pocket_mode"

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

move-result v8

if-ne v8, v9, :cond_4

move v8, v9

:goto_1
invoke-virtual {v11, v8}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mPocketMode:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

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

move-result v11

invoke-virtual {v8, v11}, Landroid/preference/CheckBoxPreference;->setEnabled(Z)V

const-string v8, "show_always"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/CheckBoxPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mShowAlways:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mShowAlways:Landroid/preference/CheckBoxPreference;

const-string v8, "lockscreen_notifications_show_always"

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

move-result v8

if-ne v8, v9, :cond_5

move v8, v9

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

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mShowAlways:Landroid/preference/CheckBoxPreference;

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mPocketMode:Landroid/preference/CheckBoxPreference;

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

move-result v8

if-eqz v8, :cond_6

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mPocketMode:Landroid/preference/CheckBoxPreference;

invoke-virtual {v8}, Landroid/preference/CheckBoxPreference;->isEnabled()Z

move-result v8

if-eqz v8, :cond_6

move v8, v9

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

const-string v8, "wake_on_notification"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/CheckBoxPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mWakeOnNotification:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mWakeOnNotification:Landroid/preference/CheckBoxPreference;

const-string v8, "lockscreen_notifications_wake_on_notification"

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

move-result v8

if-ne v8, v9, :cond_7

move v8, v9

:goto_4
invoke-virtual {v11, v8}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mWakeOnNotification:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

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

move-result v11

invoke-virtual {v8, v11}, Landroid/preference/CheckBoxPreference;->setEnabled(Z)V

const-string v8, "hide_low_priority"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/CheckBoxPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mHideLowPriority:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mHideLowPriority:Landroid/preference/CheckBoxPreference;

const-string v8, "lockscreen_notifications_hide_low_priority"

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

move-result v8

if-ne v8, v9, :cond_8

move v8, v9

:goto_5
invoke-virtual {v11, v8}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mHideLowPriority:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

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

move-result v11

invoke-virtual {v8, v11}, Landroid/preference/CheckBoxPreference;->setEnabled(Z)V

const-string v8, "hide_non_clearable"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/CheckBoxPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mHideNonClearable:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mHideNonClearable:Landroid/preference/CheckBoxPreference;

const-string v8, "lockscreen_notifications_hide_non_clearable"

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

move-result v8

if-ne v8, v9, :cond_9

move v8, v9

:goto_6
invoke-virtual {v11, v8}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mHideNonClearable:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

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

move-result v11

invoke-virtual {v8, v11}, Landroid/preference/CheckBoxPreference;->setEnabled(Z)V

const-string v8, "dismiss_all"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/CheckBoxPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mDismissAll:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mDismissAll:Landroid/preference/CheckBoxPreference;

const-string v8, "lockscreen_notifications_dismiss_all"

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

move-result v8

if-ne v8, v9, :cond_a

move v8, v9

:goto_7
invoke-virtual {v11, v8}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mDismissAll:Landroid/preference/CheckBoxPreference;

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mHideNonClearable:Landroid/preference/CheckBoxPreference;

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

move-result v8

if-nez v8, :cond_b

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

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

move-result v8

if-eqz v8, :cond_b

move v8, v9

:goto_8
invoke-virtual {v11, v8}, Landroid/preference/CheckBoxPreference;->setEnabled(Z)V

const-string v8, "privacy_mode"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/CheckBoxPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mPrivacyMode:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mPrivacyMode:Landroid/preference/CheckBoxPreference;

const-string v8, "lockscreen_notifications_privacy_mode"

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

move-result v8

if-ne v8, v9, :cond_c

move v8, v9

:goto_9
invoke-virtual {v11, v8}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mPrivacyMode:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

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

move-result v11

invoke-virtual {v8, v11}, Landroid/preference/CheckBoxPreference;->setEnabled(Z)V

const-string v8, "dynamic_width"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/CheckBoxPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mDynamicWidth:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mDynamicWidth:Landroid/preference/CheckBoxPreference;

const-string v8, "lockscreen_notifications_dynamic_width"

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

move-result v8

if-ne v8, v9, :cond_d

move v8, v9

:goto_a
invoke-virtual {v11, v8}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mDynamicWidth:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

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

move-result v11

invoke-virtual {v8, v11}, Landroid/preference/CheckBoxPreference;->setEnabled(Z)V

const-string v8, "expanded_view"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/CheckBoxPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mExpandedView:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mExpandedView:Landroid/preference/CheckBoxPreference;

const-string v8, "lockscreen_notifications_expanded_view"

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

move-result v8

if-ne v8, v9, :cond_e

move v8, v9

:goto_b
invoke-virtual {v11, v8}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mExpandedView:Landroid/preference/CheckBoxPreference;

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

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

move-result v8

if-eqz v8, :cond_f

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mPrivacyMode:Landroid/preference/CheckBoxPreference;

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

move-result v8

if-nez v8, :cond_f

move v8, v9

:goto_c
invoke-virtual {v11, v8}, Landroid/preference/CheckBoxPreference;->setEnabled(Z)V

const-string v8, "force_expanded_view"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/CheckBoxPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mForceExpandedView:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mForceExpandedView:Landroid/preference/CheckBoxPreference;

const-string v8, "lockscreen_notifications_force_expanded_view"

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

move-result v8

if-ne v8, v9, :cond_10

move v8, v9

:goto_d
invoke-virtual {v11, v8}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mForceExpandedView:Landroid/preference/CheckBoxPreference;

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

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

move-result v11

if-eqz v11, :cond_0

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mExpandedView:Landroid/preference/CheckBoxPreference;

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

move-result v11

if-eqz v11, :cond_0

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mPrivacyMode:Landroid/preference/CheckBoxPreference;

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

move-result v11

if-nez v11, :cond_0

move v10, v9

:cond_0
invoke-virtual {v8, v10}, Landroid/preference/CheckBoxPreference;->setEnabled(Z)V

const-string v8, "offset_top"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Landroid/preference/SeekBarPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mOffsetTop:Landroid/preference/SeekBarPreference;

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mOffsetTop:Landroid/preference/SeekBarPreference;

const-string v10, "lockscreen_notifications_offset_top"

const v11, 0x3e99999a

invoke-static {v1, v10, v11}, Landroid/provider/Settings$System;->getFloat(Landroid/content/ContentResolver;Ljava/lang/String;F)F

move-result v10

mul-float/2addr v10, v13

float-to-int v10, v10

invoke-virtual {v8, v10}, Landroid/preference/SeekBarPreference;->setProgress(I)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mOffsetTop:Landroid/preference/SeekBarPreference;

new-instance v10, Ljava/lang/StringBuilder;

invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

invoke-virtual {p0}, Lcom/android/settings/AOSPAL/LockscreenNotifications;->getResources()Landroid/content/res/Resources;

move-result-object v11

const v12, 0x7f090f56

invoke-virtual {v11, v12}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;

move-result-object v11

invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

move-result-object v10

const-string v11, " "

invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v10

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mOffsetTop:Landroid/preference/SeekBarPreference;

invoke-virtual {v11}, Landroid/preference/SeekBarPreference;->getProgress()I

move-result v11

invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

move-result-object v10

const-string v11, "%"

invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v10

invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v10

invoke-virtual {v8, v10}, Landroid/preference/SeekBarPreference;->setTitle(Ljava/lang/CharSequence;)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mOffsetTop:Landroid/preference/SeekBarPreference;

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

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mOffsetTop:Landroid/preference/SeekBarPreference;

iget-object v10, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

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

move-result v10

invoke-virtual {v8, v10}, Landroid/preference/SeekBarPreference;->setEnabled(Z)V

const-string v8, "notifications_height"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v8

check-cast v8, Lcom/android/settings/AOSPAL/NumberPickerPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mNotificationsHeight:Lcom/android/settings/AOSPAL/NumberPickerPreference;

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mNotificationsHeight:Lcom/android/settings/AOSPAL/NumberPickerPreference;

const-string v10, "lockscreen_notifications_height"

const/4 v11, 0x4

invoke-static {v1, v10, v11}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v10

invoke-virtual {v8, v10}, Lcom/android/settings/AOSPAL/NumberPickerPreference;->setValue(I)V

new-instance v2, Landroid/graphics/Point;

invoke-direct {v2}, Landroid/graphics/Point;-><init>()V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mContext:Landroid/content/Context;

const-string v10, "window"

invoke-virtual {v8, v10}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v8

check-cast v8, Landroid/view/WindowManager;

invoke-interface {v8}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

move-result-object v8

invoke-virtual {v8, v2}, Landroid/view/Display;->getSize(Landroid/graphics/Point;)V

iget v8, v2, Landroid/graphics/Point;->y:I

int-to-float v8, v8

const/high16 v10, 0x3f8

iget-object v11, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mOffsetTop:Landroid/preference/SeekBarPreference;

invoke-virtual {v11}, Landroid/preference/SeekBarPreference;->getProgress()I

move-result v11

int-to-float v11, v11

div-float/2addr v11, v13

sub-float/2addr v10, v11

mul-float/2addr v8, v10

iget-object v10, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mContext:Landroid/content/Context;

invoke-virtual {v10}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v10

const v11, 0x7f0f009c

invoke-virtual {v10, v11}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

move-result v10

int-to-float v10, v10

div-float/2addr v8, v10

invoke-static {v8}, Ljava/lang/Math;->round(F)I

move-result v6

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mNotificationsHeight:Lcom/android/settings/AOSPAL/NumberPickerPreference;

invoke-virtual {v8, v9}, Lcom/android/settings/AOSPAL/NumberPickerPreference;->setMinValue(I)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mNotificationsHeight:Lcom/android/settings/AOSPAL/NumberPickerPreference;

invoke-virtual {v8, v6}, Lcom/android/settings/AOSPAL/NumberPickerPreference;->setMaxValue(I)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mNotificationsHeight:Lcom/android/settings/AOSPAL/NumberPickerPreference;

invoke-virtual {v8, p0}, Lcom/android/settings/AOSPAL/NumberPickerPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mNotificationsHeight:Lcom/android/settings/AOSPAL/NumberPickerPreference;

iget-object v9, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mLockscreenNotifications:Landroid/preference/CheckBoxPreference;

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

move-result v9

invoke-virtual {v8, v9}, Lcom/android/settings/AOSPAL/NumberPickerPreference;->setEnabled(Z)V

const-string v8, "excluded_apps"

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

move-result-object v8

check-cast v8, Lcom/android/settings/AOSPAL/AppMultiSelectListPreference;

iput-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mExcludedAppsPref:Lcom/android/settings/AOSPAL/AppMultiSelectListPreference;

invoke-direct {p0}, Lcom/android/settings/AOSPAL/LockscreenNotifications;->getExcludedApps()Ljava/util/Set;

move-result-object v3

if-eqz v3, :cond_1

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mExcludedAppsPref:Lcom/android/settings/AOSPAL/AppMultiSelectListPreference;

invoke-virtual {v8, v3}, Lcom/android/settings/AOSPAL/AppMultiSelectListPreference;->setValues(Ljava/util/Set;)V

:cond_1
iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mExcludedAppsPref:Lcom/android/settings/AOSPAL/AppMultiSelectListPreference;

invoke-virtual {v8, p0}, Lcom/android/settings/AOSPAL/AppMultiSelectListPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

invoke-virtual {p0}, Lcom/android/settings/AOSPAL/LockscreenNotifications;->getPackageManager()Landroid/content/pm/PackageManager;

move-result-object v8

const-string v9, "android.hardware.sensor.proximity"

invoke-virtual {v8, v9}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z

move-result v5

if-nez v5, :cond_2

const-string v8, "category_general"

invoke-virtual {v7, v8}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v4

check-cast v4, Landroid/preference/PreferenceCategory;

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mPocketMode:Landroid/preference/CheckBoxPreference;

invoke-virtual {v4, v8}, Landroid/preference/PreferenceCategory;->removePreference(Landroid/preference/Preference;)Z

iget-object v8, p0, Lcom/android/settings/AOSPAL/LockscreenNotifications;->mShowAlways:Landroid/preference/CheckBoxPreference;

invoke-virtual {v4, v8}, Landroid/preference/PreferenceCategory;->removePreference(Landroid/preference/Preference;)Z

:cond_2
return-void

:cond_3
move v8, v10

goto/16 :goto_0

:cond_4

.end method

i got this error

E/AndroidRuntime( 4576): FATAL EXCEPTION: main

E/AndroidRuntime( 4576): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException

E/AndroidRuntime( 4576):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2110)

E/AndroidRuntime( 4576):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)

E/AndroidRuntime( 4576):	at android.app.ActivityThread.access$700(ActivityThread.java:140)

E/AndroidRuntime( 4576):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)

E/AndroidRuntime( 4576):	at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime( 4576):	at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 4576):	at android.app.ActivityThread.main(ActivityThread.java:4921)

E/AndroidRuntime( 4576):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 4576):	at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime( 4576):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)

E/AndroidRuntime( 4576):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)

E/AndroidRuntime( 4576):	at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 4576): Caused by: java.lang.NullPointerException

E/AndroidRuntime( 4576):	at com.android.settings.AOSPAL.LockscreenNotifications.onCreate(LockscreenNotifications.java)

E/AndroidRuntime( 4576):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:796)

E/AndroidRuntime( 4576):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1035)

E/AndroidRuntime( 4576):	at android.app.BackStackRecord.run(BackStackRecord.java:635)

E/AndroidRuntime( 4576):	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1399)

E/AndroidRuntime( 4576):	at android.app.Activity.performStart(Activity.java:5215)

E/AndroidRuntime( 4576):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2083)

E/AndroidRuntime( 4576):	... 11 more

what mean?

thanks in advance