QS/PW: Check for mobile data instead of telephony permissions (1/2)
For QuickSettings and Power Widget check if there is ConnectivityManager.TYPE_MOBILE network avaialbe directly instead of relying on a checking for the PackageManager.FEATURE_TELEPHONY permission. Some devices like tilapia (Nexus 7 GSM) has mobile data but does not set the telephony permission. Patchset 2: - Use ConnectivityManager.isNetworkSupported() instead of checking for a null value returned from ConnectivityManager.getNetworkInfo(). Thanks - Have MobileNetworkTile use the QSUtil deviceSupportsMobileData method Change-Id: I71bd6217cbe08622f805de4ae30a87df11340f5f Fixes: CYAN-803
Loading
Please register or sign in to comment