Skip to content

Commit

Permalink
♻️ Refactor: 카테고리 화면 진입 과정 간소화로 인한 불필요한 파일 삭제
Browse files Browse the repository at this point in the history
- Related to: #346
  • Loading branch information
nahy-512 committed Feb 3, 2025
1 parent 2e307c6 commit 78f8bc7
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 549 deletions.
6 changes: 0 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@
android:name=".presentation.ui.home.schedule.map.MapActivity"
android:exported="false"
android:windowSoftInputMode="adjustPan" />
<activity
android:name=".presentation.ui.home.category.CategoryActivity"
android:theme="@style/Theme.Transparent" />
<activity
android:name=".presentation.ui.home.category.CategoryEditActivity"
android:theme="@style/Theme.Transparent" />
<activity
android:name=".presentation.ui.home.schedule.ScheduleActivity"
android:exported="false"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
package com.mongmong.namo.presentation.ui.home.schedule

import android.content.Intent
import android.util.Log
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLayoutManager
import com.mongmong.namo.R
import com.mongmong.namo.presentation.ui.home.schedule.adapter.DialogCategoryRVAdapter
import com.mongmong.namo.domain.model.CategoryModel
import com.mongmong.namo.databinding.FragmentScheduleDialogCategoryBinding
import com.mongmong.namo.domain.model.CategoryModel
import com.mongmong.namo.presentation.config.BaseFragment
import com.mongmong.namo.presentation.ui.home.category.CategoryActivity
import com.mongmong.namo.presentation.ui.home.schedule.adapter.DialogCategoryRVAdapter
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
Expand Down Expand Up @@ -38,7 +35,6 @@ class ScheduleDialogCategoryFragment
// 카테고리 추가
binding.dialogScheduleCategoryAddBtn.setOnClickListener {
findNavController().navigate(R.id.action_scheduleDialogCategoryFragment_to_categoryFragment)
// startActivity(Intent(activity, CategoryActivity::class.java))
}
}

Expand All @@ -50,16 +46,13 @@ class ScheduleDialogCategoryFragment
override fun onSelectCategory(category: CategoryModel) {
viewModel.updateCategory(category)
val action = ScheduleDialogCategoryFragmentDirections.actionScheduleDialogCategoryFragmentToScheduleDialogBasicFragment()
Log.d("CategoryFragment", "selected category: $category")
findNavController().navigate(action)
}

// 카테고리 편집 화면으로 이동
override fun onEditCategory(category: CategoryModel) {
val action = ScheduleDialogCategoryFragmentDirections.actionScheduleDialogCategoryFragmentToCategoryFragment(category)
Log.d("CategoryFragment", "selected category: $category")
findNavController().navigate(action)
// findNavController().navigate(R.id.action_scheduleDialogCategoryFragment_to_categoryFragment)
}
})

Expand Down
26 changes: 0 additions & 26 deletions app/src/main/res/layout/activity_category.xml

This file was deleted.

Loading

0 comments on commit 78f8bc7

Please sign in to comment.