Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
Enhancement: query isAnyActionAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
tabebqena committed Feb 18, 2020
1 parent 92422e3 commit 0c21c90
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ public static boolean isActionAvailable (Context context, Actions actions) {
return actionAvailable;
}

public static boolean isAnyActionAvailable(Context context){
for (Actions action : Actions.values()){
if (isActionAvailable(context, action)){
return true;
}
}
return false;
}

public static boolean isDeviceSupported(){
return DevicesManager.getDevice() != null;
}
Expand Down

0 comments on commit 0c21c90

Please sign in to comment.