Skip to content

Commit 6d183fc

Browse files
authored
Fixed typo in method name
1 parent 36dcb2d commit 6d183fc

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)