Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanatkinson committed Oct 20, 2023
1 parent 81c49f3 commit def8db1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import android.util.Log
import com.google.firebase.Firebase
import com.google.firebase.FirebaseApp
import com.google.firebase.app
import com.google.firebase.sessions.api.SessionSubscriber
import com.google.firebase.sessions.settings.SessionsSettings
import kotlin.coroutines.CoroutineContext
import kotlinx.coroutines.CoroutineScope
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.tasks.await

/**
* Responsible for uploading session events to Firelog.
*/
/** Responsible for uploading session events to Firelog. */
internal interface SessionFirelogPublisher {

/**
* Asynchronously logs the session represented by the given [SessionDetails] to Firelog.
*/
/** Asynchronously logs the session represented by the given [SessionDetails] to Firelog. */
fun logSession(sessionDetails: SessionDetails): Unit

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import android.content.ServiceConnection
import android.os.Handler
import android.os.HandlerThread
import android.os.IBinder
import android.os.Looper
import android.os.Message
import android.os.Messenger
import android.os.RemoteException
Expand Down Expand Up @@ -60,7 +59,7 @@ internal object SessionLifecycleClient {
init {
handlerThread.start()
}

/**
* The callback class that will be used to receive updated session events from the
* [SessionLifecycleService].
Expand Down Expand Up @@ -150,16 +149,14 @@ internal object SessionLifecycleClient {
sendLifecycleEvent(SessionLifecycleService.BACKGROUNDED)
}

/**
* Perform initialization that requires cleanup
*/
/** Perform initialization that requires cleanup */
fun started() {
if (!handlerThread.isAlive) { handlerThread.start() }
if (!handlerThread.isAlive) {
handlerThread.start()
}
}

/**
* Cleanup initialization
*/
/** Cleanup initialization */
fun stopped() {
handlerThread.quit()
}
Expand Down

0 comments on commit def8db1

Please sign in to comment.