Skip to content

Commit 45a79e4

Browse files
authored
Merge pull request Blankj#12 from bhargavms/master
Fixed typo in method name
2 parents 36dcb2d + 6d183fc commit 45a79e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

androidframework/src/main/java/com/blankj/androidframework/utils/NetworkUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static int getPhoneType(Context context) {
8080
* 获取手机连接的网络类型(2G,3G,4G)
8181
* <p>联通的3G为UMTS或HSDPA,移动和联通的2G为GPRS或EGDE,电信的2G为CDMA,电信的3G为EVDO
8282
*/
83-
public static int getNetworkTpye(Context context) {
83+
public static int getNetworkType(Context context) {
8484
TelephonyManager tm = (TelephonyManager) context
8585
.getSystemService(Context.TELEPHONY_SERVICE);
8686
switch (tm.getNetworkType()) {

0 commit comments

Comments
 (0)