Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jdsjlzx committed Jan 4, 2017
1 parent cb27c57 commit 2ed058d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,10 @@ public void setIndicatorId(int indicatorId) {
indicatorName = "BallBeatIndicator";
break;
case LineScalePulseOut:
indicatorName = "LineScaleIndicator";
indicatorName = "LineScalePulseOutIndicator";
break;
case LineScalePulseOutRapid:
indicatorName = "LineScalePartyIndicator";
indicatorName = "LineScalePulseOutRapidIndicator";
break;
case BallScaleRipple:
indicatorName = "BallScaleRippleIndicator";
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/lzx/demo/util/NetworkUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static String[] getNetType(Context paramContext) {
return arrayOfString;
}

ConnectivityManager localConnectivityManager = (ConnectivityManager) paramContext.getSystemService("connectivity");
ConnectivityManager localConnectivityManager = (ConnectivityManager) paramContext.getSystemService(Context.CONNECTIVITY_SERVICE);
if (localConnectivityManager == null) {
arrayOfString[0] = "Unknown";
return arrayOfString;
Expand Down

0 comments on commit 2ed058d

Please sign in to comment.