diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index d239440..b2bdf2d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,4 +3,4 @@ androidPlugin = "com.android.tools.build:gradle:9.5.0" gradleMavenPublishPlugin = "com.vanniktech:gradle-maven-publish-plugin:0.37.0" spotlessPlugin = "com.diffplug.spotless:spotless-plugin-gradle:8.10.4" -googleJavaFormat = "com.google.googlejavaformat:google-java-format:1.36.1" +googleJavaFormat = "com.google.googlejavaformat:google-java-format:2.0.0" diff --git a/sample/src/main/java/com/jakewharton/processphoenix/sample/RestartService.java b/sample/src/main/java/com/jakewharton/processphoenix/sample/RestartService.java index a0adcbf..778f5a4 100644 --- a/sample/src/main/java/com/jakewharton/processphoenix/sample/RestartService.java +++ b/sample/src/main/java/com/jakewharton/processphoenix/sample/RestartService.java @@ -38,12 +38,11 @@ protected void onHandleIntent(Intent intent) { // Trigger rebirth from a separate thread, such that the onStartCommand can finish properly ExecutorService executorService = Executors.newSingleThreadExecutor(); - executorService.execute( - () -> { - SystemClock.sleep(1000); - ProcessPhoenix.triggerServiceRebirth(RestartService.this, RestartService.class); - // ProcessPhoenix.triggerServiceRebirth(RestartService.this, new - // Intent(RestartService.this, RestartService.class)); - }); + executorService.execute(() -> { + SystemClock.sleep(1000); + ProcessPhoenix.triggerServiceRebirth(RestartService.this, RestartService.class); + // ProcessPhoenix.triggerServiceRebirth(RestartService.this, new + // Intent(RestartService.this, RestartService.class)); + }); } }