Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Aug 26, 2015
1 parent 77a2df2 commit f185b2e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
8 changes: 5 additions & 3 deletions WordPressUtils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ repositories {
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 '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"
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 f185b2e

Please sign in to comment.