Messaging: Remove compatibility for old android versions
Change-Id: Id9065d60525a509271a0e64c0e349e857cb998e2
This commit is contained in:
@@ -62,10 +62,6 @@ public class BugleActivityUtil {
|
||||
* @return true if the user has SMS permissions, otherwise false.
|
||||
*/
|
||||
private static boolean checkHasSmsPermissionsForUser(Context context, Activity activity) {
|
||||
if (!OsUtil.isAtLeastL()) {
|
||||
// UserManager.DISALLOW_SMS added in L. No multiuser phones before this
|
||||
return true;
|
||||
}
|
||||
UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE);
|
||||
if (userManager.hasUserRestriction(UserManager.DISALLOW_SMS)) {
|
||||
new AlertDialog.Builder(activity)
|
||||
|
||||
Reference in New Issue
Block a user