Skip to content

Commit

Permalink
Merge branch 'develop' into feature/site-settings-review
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyr59h committed Sep 3, 2015
2 parents bc27690 + 41a6352 commit 24e47d5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
22 changes: 13 additions & 9 deletions WordPressUtils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'com.android.tools.build:gradle:1.3.1'
}
}

Expand All @@ -12,25 +12,29 @@ apply plugin: 'maven'
apply plugin: 'signing'

repositories {
mavenCentral()
jcenter()
}

dependencies {
compile 'commons-lang:commons-lang:2.6'
compile 'com.mcxiaoke.volley:library:1.0.10'
compile 'com.android.support:support-v13:22.2.0'
compile('commons-lang:commons-lang:2.6') {
exclude group: 'commons-logging'
}
compile 'com.mcxiaoke.volley:library:1.0.18'
compile 'com.android.support:support-v13:23.0.0'
}

android {
useLibrary 'org.apache.http.legacy'

publishNonDefault true

compileSdkVersion 22
buildToolsVersion '22.0.1'
compileSdkVersion 23
buildToolsVersion '23.0.0'

defaultConfig {
versionName "1.5.0"
minSdkVersion 14
targetSdkVersion 22
targetSdkVersion 23
}
}

Expand Down
2 changes: 1 addition & 1 deletion WordPressUtils/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.wordpress.android.util">

<uses-permission android:name="android.permission.GET_ACCOUNTS" />
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import android.content.Context;
import android.util.Patterns;

import org.wordpress.android.util.AppLog.T;

import java.util.regex.Pattern;

public class UserEmailUtils {
Expand All @@ -29,6 +31,7 @@ public static String getPrimaryEmail(Context context) {
return "";
} catch (SecurityException e) {
// exception will occur if app doesn't have GET_ACCOUNTS permission
AppLog.e(T.UTILS, "SecurityException - missing GET_ACCOUNTS permission");
return "";
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public void init(Activity activity, CustomSwipeRefreshLayout swipeRefreshLayout,
mSwipeRefreshLayout.setOnRefreshListener(this);
final TypedArray styleAttrs = obtainStyledAttrsFromThemeAttr(activity, R.attr.swipeToRefreshStyle,
R.styleable.RefreshIndicator);
int color = styleAttrs.getColor(R.styleable.RefreshIndicator_refreshIndicatorColor,
android.R.color.holo_blue_dark);
int color = styleAttrs.getColor(R.styleable.RefreshIndicator_refreshIndicatorColor, activity.getResources()
.getColor(android.R.color.holo_blue_dark));
mSwipeRefreshLayout.setColorSchemeColors(color, color, color, color);
}

Expand Down

0 comments on commit 24e47d5

Please sign in to comment.