mirror of
https://github.com/MaintainTeam/Hypatia.git
synced 2025-03-01 05:48:23 +03:00
Legal goodies
This commit is contained in:
parent
7cdde895b3
commit
d5b176ff61
1 changed files with 3 additions and 3 deletions
|
@ -78,7 +78,7 @@ class Utils {
|
|||
return filesAll;
|
||||
}
|
||||
|
||||
//Credit: https://stackoverflow.com/a/5921190
|
||||
//Credit (CC BY-SA 3.0): https://stackoverflow.com/a/5921190
|
||||
public static boolean isServiceRunning(Class<?> serviceClass, Context context) {
|
||||
ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
|
||||
for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) {
|
||||
|
@ -105,7 +105,7 @@ class Utils {
|
|||
}
|
||||
}
|
||||
|
||||
//Credit: https://stackoverflow.com/a/6758962
|
||||
//Credit (CC BY-SA 3.0): https://stackoverflow.com/a/6758962
|
||||
public static boolean isPackageInstalled(Context context, String packageID) {
|
||||
PackageManager pm = context.getPackageManager();
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue