mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Fixed typo
This commit is contained in:
parent
886dc218d0
commit
4e33434a7e
1 changed files with 4 additions and 4 deletions
|
@ -455,15 +455,15 @@ public class Helper {
|
|||
return (ris != null && ris.size() > 0);
|
||||
}
|
||||
|
||||
static void enableComponent(Context context, Class<?> clazz, boolean wether) {
|
||||
enableComponent(context, clazz.getName(), wether);
|
||||
static void enableComponent(Context context, Class<?> clazz, boolean whether) {
|
||||
enableComponent(context, clazz.getName(), whether);
|
||||
}
|
||||
|
||||
static void enableComponent(Context context, String name, boolean wether) {
|
||||
static void enableComponent(Context context, String name, boolean whether) {
|
||||
PackageManager pm = context.getPackageManager();
|
||||
pm.setComponentEnabledSetting(
|
||||
new ComponentName(context, name),
|
||||
wether
|
||||
whether
|
||||
? PackageManager.COMPONENT_ENABLED_STATE_DEFAULT
|
||||
: PackageManager.COMPONENT_ENABLED_STATE_DISABLED,
|
||||
PackageManager.DONT_KILL_APP);
|
||||
|
|
Loading…
Reference in a new issue