Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .method protected onCreate(Landroid/os/Bundle;)V
- .locals 7
- .parameter "savedInstanceState"
- .prologue
- const/4 v4, 0x0
- const/4 v0, 0x1
- .line 36
- invoke-super {p0, p1}, Landroid/preference/PreferenceActivity;->onCreate(Landroid/os/Bundle;)V
- .line 38
- invoke-virtual {p0}, Lcom/j4n87/tweaks/extActivities/ClockActivity;->getApplicationContext()Landroid/content/Context;
- move-result-object v3
- iput-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mContext:Landroid/content/Context;
- .line 40
- const v3, 0x7f040001
- invoke-virtual {p0, v3}, Lcom/j4n87/tweaks/extActivities/ClockActivity;->setContentView(I)V
- .line 42
- const v3, 0x7f030004
- invoke-virtual {p0, v3}, Lcom/j4n87/tweaks/extActivities/ClockActivity;->addPreferencesFromResource(I)V
- .line 43
- invoke-virtual {p0}, Lcom/j4n87/tweaks/extActivities/ClockActivity;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
- move-result-object v2
- .line 45
- .local v2, prefs:Landroid/preference/PreferenceScreen;
- const-string v3, "pref_clock"
- invoke-virtual {v2, v3}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
- move-result-object v3
- check-cast v3, Landroid/preference/ListPreference;
- iput-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mClockStyle:Landroid/preference/ListPreference;
- .line 46
- const-string v3, "clock_color_pref"
- invoke-virtual {v2, v3}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
- move-result-object v3
- iput-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mColorPref:Landroid/preference/Preference;
- .line 50
- invoke-virtual {p0}, Lcom/j4n87/tweaks/extActivities/ClockActivity;->getContentResolver()Landroid/content/ContentResolver;
- move-result-object v3
- const-string v5, "tweaks_clock_style"
- invoke-static {v3, v5, v0}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
- move-result v1
- .line 52
- .local v1, clockVal:I
- iget-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mClockStyle:Landroid/preference/ListPreference;
- invoke-virtual {v3, v1}, Landroid/preference/ListPreference;->setValueIndex(I)V
- .line 53
- iget-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mClockStyle:Landroid/preference/ListPreference;
- invoke-virtual {v3, p0}, Landroid/preference/ListPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V
- .line 56
- const-string v3, "hide_ampm"
- invoke-virtual {v2, v3}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
- move-result-object v3
- check-cast v3, Landroid/preference/CheckBoxPreference;
- iput-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mAMPM:Landroid/preference/CheckBoxPreference;
- .line 61
- invoke-virtual {p0}, Lcom/j4n87/tweaks/extActivities/ClockActivity;->getContentResolver()Landroid/content/ContentResolver;
- move-result-object v3
- const-string v5, "tweaks_clock_hide_ampm"
- invoke-static {v3, v5, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
- move-result v3
- if-ne v3, v0, :cond_0
- .line 63
- .local v0, checked:Z
- :goto_0
- iget-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mAMPM:Landroid/preference/CheckBoxPreference;
- invoke-virtual {v3, v0}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V
- .local v2, prefs:Landroid/preference/PreferenceScreen;
- const-string v3, "pref_header_clock"
- invoke-virtual {v2, v3}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
- move-result-object v3
- check-cast v3, Landroid/preference/ListPreference;
- iput-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mHeaderClockStyle:Landroid/preference/ListPreference;
- .line 46
- const-string v3, "header_clock_color_pref"
- invoke-virtual {v2, v3}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
- move-result-object v3
- iput-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mHeaderColorPref:Landroid/preference/Preference;
- .line 50
- invoke-virtual {p0}, Lcom/j4n87/tweaks/extActivities/ClockActivity;->getContentResolver()Landroid/content/ContentResolver;
- move-result-object v3
- const-string v5, "tweaks_header_clock_style"
- invoke-static {v3, v5, v0}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
- move-result v1
- .line 52
- .local v1, headerclockVal:I
- iget-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mHeaderClockStyle:Landroid/preference/ListPreference;
- invoke-virtual {v3, v1}, Landroid/preference/ListPreference;->setValueIndex(I)V
- .line 53
- iget-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mHeaderClockStyle:Landroid/preference/ListPreference;
- invoke-virtual {v3, p0}, Landroid/preference/ListPreference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V
- .line 56
- const-string v3, "hide_ampm_header_clock"
- invoke-virtual {v2, v3}, Landroid/preference/PreferenceScreen;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
- move-result-object v3
- check-cast v3, Landroid/preference/CheckBoxPreference;
- iput-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mHeaderAMPM:Landroid/preference/CheckBoxPreference;
- .line 61
- invoke-virtual {p0}, Lcom/j4n87/tweaks/extActivities/ClockActivity;->getContentResolver()Landroid/content/ContentResolver;
- move-result-object v3
- const-string v6, "tweaks_header_clock_hide_ampm"
- invoke-static {v3, v6, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
- move-result v3
- if-ne v3, v0, :cond_1
- .line 63
- .local v0, checked:Z
- :goto_1
- iget-object v3, p0, Lcom/j4n87/tweaks/extActivities/ClockActivity;->mHeaderAMPM:Landroid/preference/CheckBoxPreference;
- invoke-virtual {v3, v0}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V
- return-void
- .end local v0 #checked:Z
- :cond_0
- move v0, v4
- .line 61
- goto :goto_0
- :cond_1
- move v0, v4
- .line 61
- goto :goto_1
- .end method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement