NavigationComponent廃止

This commit is contained in:
r-ca 2024-01-21 15:31:06 +09:00
parent d6faf8ec16
commit c45847ecd2
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
2 changed files with 4 additions and 8 deletions

View File

@ -25,15 +25,13 @@ import one.nem.lacerta.utils.LacertaLogger;
@AndroidEntryPoint @AndroidEntryPoint
public class ViewerMainActivity extends AppCompatActivity { public class ViewerMainActivity extends AppCompatActivity {
@Inject
LacertaLogger logger; LacertaLogger logger;
@Inject @Inject
public ViewerMainActivity(LacertaLogger logger) { public ViewerMainActivity() {
this.logger = logger;
logger.debug(TAG, "ViewerMainActivity created");
} }
// Variables // Variables
private static final String TAG = "ViewerMainActivity"; private static final String TAG = "ViewerMainActivity";
String documentId; String documentId;

View File

@ -9,15 +9,13 @@
<androidx.fragment.app.FragmentContainerView <androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment" android:id="@+id/nav_host_fragment"
android:name="androidx.navigation.fragment.NavHostFragment" android:name="one.nem.lacerta.component.viewer.ComponentViewerTopFragment"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="0dp" android:layout_height="0dp"
app:defaultNavHost="true" app:defaultNavHost="true"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"/>
app:navGraph="@navigation/component_viewer_navigation"
tools:layout="@layout/fragment_component_viewer_top" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>