Skip to content
Snippets Groups Projects
Commit 242601db authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Safety util method to update view visibility

parent 3e3c93fb
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,11 @@ public class UiTools {
}
}
public static void setViewVisibility(View v, int visibility) {
if (v != null)
v.setVisibility(visibility);
}
public static boolean isBlackThemeEnabled() {
SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(VLCApplication.getAppContext());
return pref.getBoolean("enable_black_theme", false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment