Here we as if activity recognition is approved. If it is and activity recognition is already enabled, we disable it. Otherwise, we enable it.
Shouldn't it be?
Here we (check/verify) if activity recognition is approved. If it is and activity recognition is already enabled, we disable it. Otherwise, we enable it.
Underneath the third code snippet, it says
Here we as if activity recognition is approved. If it is and activity recognition is already enabled, we disable it. Otherwise, we enable it.
Shouldn't it be?
Here we (check/verify) if activity recognition is approved. If it is and activity recognition is already enabled, we disable it. Otherwise, we enable it.