Skip to content

fix and add new functionality#2

Open
Sitronik wants to merge 4 commits intoboltex:masterfrom
Sitronik:master
Open

fix and add new functionality#2
Sitronik wants to merge 4 commits intoboltex:masterfrom
Sitronik:master

Conversation

@Sitronik
Copy link

No description provided.

}
else {
result = this.acquire( PowerManager.FULL_WAKE_LOCK );
result = partialWakeLock();
Copy link
Owner

@boltex boltex Aug 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so no more full wake lock if no arguments? - also this if/then doesnt change anything if true/false :

result = partialWakeLock();
    } else {
result = partialWakeLock();

both are the same??

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, since when starting in an ionic project, we always get into the “else” construction where there was a complete wake lock. Even if there are arguments or not.
I'm not good at Java, but when removing “if” and “else” in «if (action.equals ("acquire"))» it didn't compile because catch won't work, I decided to leave it that way, because everything works in my case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants