Skip to content

Commit

Permalink
Merge pull request #419 from doubleangels/dev
Browse files Browse the repository at this point in the history
Update comments in all classes and activities
  • Loading branch information
doubleangels authored Feb 18, 2025
2 parents 208473f + 4ab6d92 commit 77a2f60
Show file tree
Hide file tree
Showing 16 changed files with 1,326 additions and 95 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ updates:
target-branch: "dev"
commit-message:
prefix: "[Gradle]"
reviewers:
- "doubleangels"

- package-ecosystem: github-actions
directory: "/"
Expand All @@ -17,5 +15,3 @@ updates:
target-branch: "dev"
commit-message:
prefix: "[Github Actions]"
reviewers:
- "doubleangels"
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,48 @@

import androidx.annotation.Nullable;

/**
* A basic Service class named "CustomFirebaseMessagingService."
*/
public class CustomFirebaseMessagingService extends Service {

/**
* Called each time the service is started with an Intent.
* Returning START_NOT_STICKY means the system will NOT recreate the service
* if it is killed while there are no start commands pending.
*
* @param intent The Intent used to start the service.
* @param flags Additional data about the start request.
* @param startId A unique integer representing this specific request to start.
* @return The mode in which the system will handle if this service’s process is killed.
*/
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
// No push notifications processing in the foss flavor.
// Perform any necessary work here (e.g., background tasks, message handling).
return START_NOT_STICKY;
}

/**
* Called by the system when the service is first created.
* This is where you can do one-time setup before the service runs.
*/
@Override
public void onCreate() {
super.onCreate();
// Initialize alternative push systems here if needed,
// or simply leave it as a no-op.
// Initialize resources or perform any setup needed by this service.
}

/**
* Called when another component wants to bind with the service by calling bindService().
* Returning null indicates this service is not designed to be bound; it's started as needed.
*
* @param intent The Intent that was used to bind to this service.
* @return An IBinder for client binding, or null if binding is not allowed.
*/
@Nullable
@Override
public IBinder onBind(Intent intent) {
// For a bound service, you would return a binder interface here.
return null;
}
}
Loading

0 comments on commit 77a2f60

Please sign in to comment.