-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: 알림 화면이 부모 화면 위에 쌓이는 기능 추가 * feat: 알림 TaskStack 생성 기능 추가
- Loading branch information
Showing
6 changed files
with
64 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 1 addition & 8 deletions
9
android/app/src/main/java/com/ddangddangddang/android/feature/main/MainBindingAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 15 additions & 5 deletions
20
android/app/src/main/java/com/ddangddangddang/android/feature/main/MainFragmentType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
package com.ddangddangddang.android.feature.main | ||
|
||
enum class MainFragmentType(val tag: String) { | ||
HOME("fragment_home_tag"), | ||
SEARCH("fragment_search_tag"), | ||
MESSAGE("fragment_message_tag"), | ||
MY_PAGE("fragment_my_page_tag"), | ||
import androidx.annotation.IdRes | ||
import com.ddangddangddang.android.R | ||
|
||
enum class MainFragmentType(@IdRes val id: Int, val tag: String) { | ||
HOME(R.id.menu_item_home, "fragment_home_tag"), | ||
SEARCH(R.id.menu_item_search, "fragment_search_tag"), | ||
MESSAGE(R.id.menu_item_message, "fragment_message_tag"), | ||
MY_PAGE(R.id.menu_item_my_page, "fragment_my_page_tag"), ; | ||
|
||
companion object { | ||
fun of(@IdRes menuId: Int): MainFragmentType { | ||
return values().firstOrNull { it.id == menuId } | ||
?: throw IllegalArgumentException("No match type for menu item") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters