[Galaxy S II Android Development] remuntada78:
in the above method i need to port the following code

const/4 v9, 0x1

const/high16 v7, 0x42c80000

iget-object v11, p0, Lcom/android/settings/custommod/ModSettings;->mNotificationsHeight:Lcom/android/settings/custommod/NumberPickerPreference;

if-ne p1, v11, :cond_18

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

move-result-object v11

const-string v6, "lockscreen_notifications_height"

check-cast p2, Ljava/lang/Integer;

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

move-result v4

invoke-static {v11, v6, v4}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

:goto_16
move v11, v9

:goto_17
return v11

:cond_18
iget-object v11, p0, Lcom/android/settings/custommod/ModSettings;->mOffsetTop:Landroid/preference/SeekBarPreference;

if-ne p1, v11, :cond_9c

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

move-result-object v6

const-string v4, "lockscreen_notifications_offset_top"

move-object v11, p2

check-cast v11, Ljava/lang/Integer;

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

move-result v11

int-to-float v11, v11

div-float/2addr v11, v7

invoke-static {v6, v4, v11}, Landroid/provider/Settings$System;->putFloat(Landroid/content/ContentResolver;Ljava/lang/String;F)Z

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

new-instance v6, Ljava/lang/StringBuilder;

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

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

move-result-object v4

const v8, 0x7f080303

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

move-result-object v4

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

move-result-object v6

const-string v4, " "

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

move-result-object v6

check-cast p2, Ljava/lang/Integer;

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

move-result-object v6

const-string v4, "%"

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

move-result-object v6

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

move-result-object v6

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

new-instance v0, Landroid/graphics/Point;

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

iget-object v11, p0, Lcom/android/settings/custommod/ModSettings;->mContext:Landroid/content/Context;

const-string v6, "window"

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

move-result-object v11

check-cast v11, Landroid/view/WindowManager;

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

move-result-object v11

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

iget v11, v0, Landroid/graphics/Point;->y:I

int-to-float v11, v11

const/high16 v6, 0x3f800000

iget-object v4, p0, Lcom/android/settings/custommod/ModSettings;->mOffsetTop:Landroid/preference/SeekBarPreference;

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

move-result v4

int-to-float v4, v4

div-float/2addr v4, v7

sub-float/2addr v6, v4

mul-float/2addr v11, v6

iget-object v6, p0, Lcom/android/settings/custommod/ModSettings;->mContext:Landroid/content/Context;

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

move-result-object v6

const v4, 0x7f070004

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

move-result v6

int-to-float v6, v6

div-float/2addr v11, v6

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

move-result v10

iget-object v11, p0, Lcom/android/settings/custommod/ModSettings;->mNotificationsHeight:Lcom/android/settings/custommod/NumberPickerPreference;

invoke-virtual {v11, v10}, Lcom/android/settings/custommod/NumberPickerPreference;->setMaxValue(I)V

goto/16 :goto_0

:cond_9c
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mExcludedAppsPref:Lcom/android/settings/custommod/AppMultiSelectListPreference;

if-ne p1, v11, :cond_a8

check-cast p2, Ljava/util/Set;

invoke-direct {p0, p2}, Lcom/android/settings/custommod/ModSettings;->storeExcludedApps(Ljava/util/Set;)V

move v11, v9

goto/16 :goto_17

:cond_a8
const/4 v11, 0x0

goto/16 :goto_17

could work only add it ? or i need to change the return?

thanks in advance