mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
add extra bottom padding to time holder only if the device has software nav bar
This commit is contained in:
@ -28,6 +28,11 @@ public class Utils {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static boolean hasNavBar(Resources res) {
|
||||
int id = res.getIdentifier("config_showNavigationBar", "bool", "android");
|
||||
return id > 0 && res.getBoolean(id);
|
||||
}
|
||||
|
||||
public static boolean hasStoragePermission(Context cxt) {
|
||||
return ContextCompat.checkSelfPermission(cxt, Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED;
|
||||
}
|
||||
|
Reference in New Issue
Block a user