mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
* Inserted missing spaces between `if` and `(` to improve code style, in line with GSG 4.6.2
This commit is contained in:
parent
0cf2299e49
commit
7b7d17a33b
69 changed files with 126 additions and 126 deletions
|
|
@ -66,7 +66,7 @@ public class FileUtils {
|
|||
*/
|
||||
public static boolean checkIfDirectoryExists(String pathToCheck) {
|
||||
File director = new File(pathToCheck);
|
||||
if(director.exists() && director.isDirectory()) {
|
||||
if (director.exists() && director.isDirectory()) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -44,4 +44,4 @@ public class StringSortingUtils {
|
|||
double distanceBetweenStrings = new Levenshtein().distance(longer, shorter);
|
||||
return (longerLength - distanceBetweenStrings) / (double) longerLength;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,4 +15,4 @@ public class UriDeserializer implements JsonDeserializer<Uri> {
|
|||
final JsonDeserializationContext context) throws JsonParseException {
|
||||
return Uri.parse(src.getAsString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ public class ViewUtil {
|
|||
public static final String SHOWCASE_VIEW_ID_3 = "SHOWCASE_VIEW_ID_3";
|
||||
|
||||
public static void showSnackbar(View view, int messageResourceId) {
|
||||
if(view.getContext() == null) {
|
||||
if (view.getContext() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ public class ViewUtil {
|
|||
|
||||
public static boolean isPortrait(Context context) {
|
||||
Display orientation = ((Activity)context).getWindowManager().getDefaultDisplay();
|
||||
if(orientation.getWidth() < orientation.getHeight()){
|
||||
if (orientation.getWidth() < orientation.getHeight()){
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue