fix typo in preference key
This commit is contained in:
parent
d65d63b82b
commit
7c2ac42689
@ -229,7 +229,7 @@ class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
SharedPreferences pm = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences pm = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
Boolean isAlwayShowSensitive = pm.getBoolean("alwayShowSensitiveMedia", false);
|
Boolean isAlwayShowSensitive = pm.getBoolean("alwaysShowSensitiveMedia", false);
|
||||||
if (sensitive && (!isAlwayShowSensitive)) {
|
if (sensitive && (!isAlwayShowSensitive)) {
|
||||||
sensitiveMediaWarning.setVisibility(showingSensitive ? View.GONE : View.VISIBLE);
|
sensitiveMediaWarning.setVisibility(showingSensitive ? View.GONE : View.VISIBLE);
|
||||||
sensitiveMediaShow.setVisibility(showingSensitive ? View.VISIBLE : View.GONE);
|
sensitiveMediaShow.setVisibility(showingSensitive ? View.VISIBLE : View.GONE);
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
android:defaultValue="false"
|
android:defaultValue="false"
|
||||||
android:key="alwayShowSensitiveMedia"
|
android:key="alwaysShowSensitiveMedia"
|
||||||
android:title="@string/pref_title_alway_show_sensitive_media" />
|
android:title="@string/pref_title_alway_show_sensitive_media" />
|
||||||
|
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user