cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [1/3] cordova-plugin-splashscreen git commit: Tabs to spaces
Date Wed, 18 Oct 2017 21:22:41 GMT
Repository: cordova-plugin-splashscreen
Updated Branches:
  refs/heads/master 0b75c1faa -> 7cb318727


Tabs to spaces


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/c2c3a980
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/c2c3a980
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/c2c3a980

Branch: refs/heads/master
Commit: c2c3a980e14614bea2c18f144bd5873ca54c73ec
Parents: 1a4b51f
Author: MartijnW49 <willekensm@gmail.com>
Authored: Fri Sep 22 18:20:53 2017 +0200
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Wed Oct 18 14:21:51 2017 -0700

----------------------------------------------------------------------
 src/android/SplashScreen.java | 42 +++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 21 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/c2c3a980/src/android/SplashScreen.java
----------------------------------------------------------------------
diff --git a/src/android/SplashScreen.java b/src/android/SplashScreen.java
index 37e8caf..6f56c6c 100644
--- a/src/android/SplashScreen.java
+++ b/src/android/SplashScreen.java
@@ -367,27 +367,27 @@ public class SplashScreen extends CordovaPlugin {
                 RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT);
                 layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE);
                 progressBar.setLayoutParams(layoutParams);
-				
-				if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
-					String colorName = preferences.getString("SplashScreenSpinnerColor", null);
-					if(colorName != null){
-						int[][] states = new int[][] {
-							new int[] { android.R.attr.state_enabled}, // enabled
-							new int[] {-android.R.attr.state_enabled}, // disabled
-							new int[] {-android.R.attr.state_checked}, // unchecked
-							new int[] { android.R.attr.state_pressed}  // pressed
-						};
-						int progressBarColor = Color.parseColor(colorName);
-						int[] colors = new int[] {
-							progressBarColor,
-							progressBarColor,
-							progressBarColor,
-							progressBarColor
-						};
-						ColorStateList colorStateList = new ColorStateList(states, colors);             
-						progressBar.setIndeterminateTintList(colorStateList);
-					}
-				}
+
+                if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)
{
+                    String colorName = preferences.getString("SplashScreenSpinnerColor",
null);
+                    if(colorName != null){
+                        int[][] states = new int[][] {
+                            new int[] { android.R.attr.state_enabled}, // enabled
+                            new int[] {-android.R.attr.state_enabled}, // disabled
+                            new int[] {-android.R.attr.state_checked}, // unchecked
+                            new int[] { android.R.attr.state_pressed}  // pressed
+                        };
+                        int progressBarColor = Color.parseColor(colorName);
+                        int[] colors = new int[] {
+                            progressBarColor,
+                            progressBarColor,
+                            progressBarColor,
+                            progressBarColor
+                        };
+                        ColorStateList colorStateList = new ColorStateList(states, colors);
+                        progressBar.setIndeterminateTintList(colorStateList);
+                    }
+                }
 
                 centeredLayout.addView(progressBar);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message