Removed boolean dependency

Made a method to check the mApiLevel and returns true if the API level
is above 20