From ecec442e4b439fe7badc641b8b0d5341a65ef479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Villegas?= Date: Wed, 25 Feb 2026 11:17:22 -0300 Subject: [PATCH] refactor: move controller to dedicated pakckage --- .../base => navigation}/NavigationController.java | 2 +- .../activity/base => navigation}/NavigationDelegate.java | 2 +- .../activity/base => navigation}/NavigationHelper.java | 2 +- .../cappielloantonio/tempo/ui/activity/MainActivity.java | 9 ++------- 4 files changed, 5 insertions(+), 10 deletions(-) rename app/src/main/java/com/cappielloantonio/tempo/{ui/activity/base => navigation}/NavigationController.java (82%) rename app/src/main/java/com/cappielloantonio/tempo/{ui/activity/base => navigation}/NavigationDelegate.java (96%) rename app/src/main/java/com/cappielloantonio/tempo/{ui/activity/base => navigation}/NavigationHelper.java (99%) diff --git a/app/src/main/java/com/cappielloantonio/tempo/ui/activity/base/NavigationController.java b/app/src/main/java/com/cappielloantonio/tempo/navigation/NavigationController.java similarity index 82% rename from app/src/main/java/com/cappielloantonio/tempo/ui/activity/base/NavigationController.java rename to app/src/main/java/com/cappielloantonio/tempo/navigation/NavigationController.java index bc0b681e..8b89f37a 100644 --- a/app/src/main/java/com/cappielloantonio/tempo/ui/activity/base/NavigationController.java +++ b/app/src/main/java/com/cappielloantonio/tempo/navigation/NavigationController.java @@ -1,4 +1,4 @@ -package com.cappielloantonio.tempo.ui.activity.base; +package com.cappielloantonio.tempo.navigation; import androidx.annotation.OptIn; import androidx.media3.common.util.UnstableApi; diff --git a/app/src/main/java/com/cappielloantonio/tempo/ui/activity/base/NavigationDelegate.java b/app/src/main/java/com/cappielloantonio/tempo/navigation/NavigationDelegate.java similarity index 96% rename from app/src/main/java/com/cappielloantonio/tempo/ui/activity/base/NavigationDelegate.java rename to app/src/main/java/com/cappielloantonio/tempo/navigation/NavigationDelegate.java index a241b874..bac29a88 100644 --- a/app/src/main/java/com/cappielloantonio/tempo/ui/activity/base/NavigationDelegate.java +++ b/app/src/main/java/com/cappielloantonio/tempo/navigation/NavigationDelegate.java @@ -1,4 +1,4 @@ -package com.cappielloantonio.tempo.ui.activity.base; +package com.cappielloantonio.tempo.navigation; import android.view.View; diff --git a/app/src/main/java/com/cappielloantonio/tempo/ui/activity/base/NavigationHelper.java b/app/src/main/java/com/cappielloantonio/tempo/navigation/NavigationHelper.java similarity index 99% rename from app/src/main/java/com/cappielloantonio/tempo/ui/activity/base/NavigationHelper.java rename to app/src/main/java/com/cappielloantonio/tempo/navigation/NavigationHelper.java index f64e6bd8..c9cb2711 100644 --- a/app/src/main/java/com/cappielloantonio/tempo/ui/activity/base/NavigationHelper.java +++ b/app/src/main/java/com/cappielloantonio/tempo/navigation/NavigationHelper.java @@ -1,4 +1,4 @@ -package com.cappielloantonio.tempo.ui.activity.base; +package com.cappielloantonio.tempo.navigation; import android.content.Context; import android.view.View; diff --git a/app/src/main/java/com/cappielloantonio/tempo/ui/activity/MainActivity.java b/app/src/main/java/com/cappielloantonio/tempo/ui/activity/MainActivity.java index fd17a966..2293307c 100644 --- a/app/src/main/java/com/cappielloantonio/tempo/ui/activity/MainActivity.java +++ b/app/src/main/java/com/cappielloantonio/tempo/ui/activity/MainActivity.java @@ -15,9 +15,6 @@ import android.widget.FrameLayout; import androidx.annotation.NonNull; import androidx.core.splashscreen.SplashScreen; -import androidx.core.view.WindowCompat; -import androidx.core.view.WindowInsetsCompat; -import androidx.core.view.WindowInsetsControllerCompat; import androidx.drawerlayout.widget.DrawerLayout; import androidx.fragment.app.FragmentManager; import androidx.lifecycle.ViewModelProvider; @@ -28,7 +25,6 @@ import androidx.media3.common.MimeTypes; import androidx.media3.common.util.UnstableApi; import androidx.navigation.NavController; import androidx.navigation.fragment.NavHostFragment; -import androidx.navigation.ui.NavigationUI; import com.cappielloantonio.tempo.App; import com.cappielloantonio.tempo.BuildConfig; @@ -38,9 +34,8 @@ import com.cappielloantonio.tempo.databinding.ActivityMainBinding; import com.cappielloantonio.tempo.github.utils.UpdateUtil; import com.cappielloantonio.tempo.service.MediaManager; import com.cappielloantonio.tempo.ui.activity.base.BaseActivity; -import com.cappielloantonio.tempo.ui.activity.base.NavigationController; -import com.cappielloantonio.tempo.ui.activity.base.NavigationDelegate; -import com.cappielloantonio.tempo.ui.activity.base.NavigationHelper; +import com.cappielloantonio.tempo.navigation.NavigationDelegate; +import com.cappielloantonio.tempo.navigation.NavigationHelper; import com.cappielloantonio.tempo.ui.dialog.ConnectionAlertDialog; import com.cappielloantonio.tempo.ui.dialog.GithubTempoUpdateDialog; import com.cappielloantonio.tempo.ui.dialog.ServerUnreachableDialog;