Simplify if statements

This patch simplifies a few if statements by replacing them with returns, which helps improve code readability and simplicity.
This commit is contained in:
Deskana 2017-05-26 11:16:22 +01:00
parent 67dfa170d2
commit 7a8e04eec1
2 changed files with 2 additions and 11 deletions

View file

@ -270,10 +270,6 @@ public class Utils {
}
public static boolean isDarkTheme(Context context) {
if (PreferenceManager.getDefaultSharedPreferences(context).getBoolean("theme",true)) {
return true;
}else {
return false;
}
return PreferenceManager.getDefaultSharedPreferences(context).getBoolean("theme",true);
}
}