@@ -71,7 +71,8 @@ public abstract class AndroidAutoBaseScreen extends Screen
7171
7272 private boolean mAndroidAutoModuleInitialized = false ;
7373 private boolean mNavModuleInitialized = false ;
74- private final NavModule .NavigationReadyListener mNavigationReadyListener = this ::onSessionAttached ;
74+ private final NavModule .NavigationReadyListener mNavigationReadyListener =
75+ this ::onSessionAttached ;
7576
7677 @ Override
7778 public void setStylingOptions (StylingOptions stylingOptions ) {
@@ -98,8 +99,7 @@ private void updateNavigationUiEnabled(boolean ready) {
9899 });
99100 }
100101
101- private void handlePromptVisibilityChanged (
102- NavigationView navigationView , boolean promptVisible ) {
102+ private void handlePromptVisibilityChanged (NavigationView navigationView , boolean promptVisible ) {
103103 UiThreadUtil .runOnUiThread (
104104 () -> {
105105 if (mIsSurfaceDestroyed
@@ -127,8 +127,8 @@ protected void onPromptVisibilityChanged(boolean promptVisible) {
127127 * Called when the navigation session state changes. Override this method in your subclass to
128128 * handle navigation ready state changes.
129129 *
130- * <p>The Android Auto map view disables phone-oriented navigation UI controls so that the
131- * Android Auto navigation template remains the sole provider of navigation UI.
130+ * <p>The Android Auto map view disables phone-oriented navigation UI controls so that the Android
131+ * Auto navigation template remains the sole provider of navigation UI.
132132 *
133133 * <p>The navigation state ({@code mNavigationInitialized}) is already updated before this method
134134 * is called.
@@ -171,8 +171,7 @@ public AndroidAutoBaseScreen(@NonNull CarContext carContext) {
171171 public void onDestroy (@ NonNull LifecycleOwner lifecycleOwner ) {
172172 if (mNavModuleInitialized ) {
173173 try {
174- NavModule .getInstance ()
175- .unRegisterNavigationReadyListener (mNavigationReadyListener );
174+ NavModule .getInstance ().unRegisterNavigationReadyListener (mNavigationReadyListener );
176175 } catch (Exception e ) {
177176 // Module may have been destroyed, safe to ignore.
178177 }
@@ -268,8 +267,8 @@ public void onSurfaceAvailable(@NonNull SurfaceContainer surfaceContainer) {
268267 * Called when the map view has been loaded and is ready. Override this method in your subclass to
269268 * configure map settings.
270269 *
271- * <p>Phone-oriented navigation UI controls are disabled on the map view to avoid overlapping
272- * the Android Auto navigation template.
270+ * <p>Phone-oriented navigation UI controls are disabled on the map view to avoid overlapping the
271+ * Android Auto navigation template.
273272 */
274273 protected void onMapViewReady () {
275274 // Override this method in your subclass if you need custom behavior.
0 commit comments