Skip to content

Commit c2c3a98

Browse files
Mawi137stevengill
authored andcommitted
Tabs to spaces
1 parent 1a4b51f commit c2c3a98

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/android/SplashScreen.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -367,27 +367,27 @@ public void onCancel(DialogInterface dialog) {
367367
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
368368
layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE);
369369
progressBar.setLayoutParams(layoutParams);
370-
371-
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
372-
String colorName = preferences.getString("SplashScreenSpinnerColor", null);
373-
if(colorName != null){
374-
int[][] states = new int[][] {
375-
new int[] { android.R.attr.state_enabled}, // enabled
376-
new int[] {-android.R.attr.state_enabled}, // disabled
377-
new int[] {-android.R.attr.state_checked}, // unchecked
378-
new int[] { android.R.attr.state_pressed} // pressed
379-
};
380-
int progressBarColor = Color.parseColor(colorName);
381-
int[] colors = new int[] {
382-
progressBarColor,
383-
progressBarColor,
384-
progressBarColor,
385-
progressBarColor
386-
};
387-
ColorStateList colorStateList = new ColorStateList(states, colors);
388-
progressBar.setIndeterminateTintList(colorStateList);
389-
}
390-
}
370+
371+
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
372+
String colorName = preferences.getString("SplashScreenSpinnerColor", null);
373+
if(colorName != null){
374+
int[][] states = new int[][] {
375+
new int[] { android.R.attr.state_enabled}, // enabled
376+
new int[] {-android.R.attr.state_enabled}, // disabled
377+
new int[] {-android.R.attr.state_checked}, // unchecked
378+
new int[] { android.R.attr.state_pressed} // pressed
379+
};
380+
int progressBarColor = Color.parseColor(colorName);
381+
int[] colors = new int[] {
382+
progressBarColor,
383+
progressBarColor,
384+
progressBarColor,
385+
progressBarColor
386+
};
387+
ColorStateList colorStateList = new ColorStateList(states, colors);
388+
progressBar.setIndeterminateTintList(colorStateList);
389+
}
390+
}
391391

392392
centeredLayout.addView(progressBar);
393393

0 commit comments

Comments
 (0)