Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the background process detector api #624

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

surbhimaheshwari
Copy link
Contributor

No description provided.

@surbhimaheshwari surbhimaheshwari requested review from a team as code owners August 29, 2023 05:02
@@ -28,7 +28,7 @@ private BackgroundProcessDetector() {}

public static Boolean isBackgroundProcess(String applicationId) {
String applicationProcessName = getApplicationProcessName();
return Objects.equals(applicationProcessName, applicationId);
return !Objects.equals(applicationProcessName, applicationId);
Copy link
Contributor

Choose a reason for hiding this comment

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

it would be nice to have a comment describing why this works for detecting background processes.

Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

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

With a comment around the why I think this will be great.

@breedx-splk breedx-splk merged commit ec974b2 into main Aug 29, 2023
2 checks passed
@breedx-splk breedx-splk deleted the smaheshwari/fix_background_process_logic branch August 29, 2023 17:39
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.

3 participants