-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
250 additions
and
493 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
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
8 changes: 4 additions & 4 deletions
8
app/src/main/java/com/github/sikv/photos/route/impl/FeedbackRouteImpl.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,13 +1,13 @@ | ||
package com.github.sikv.photos.route.impl | ||
|
||
import com.github.sikv.photos.feedback.FeedbackFragment | ||
import com.github.sikv.photos.navigation.Navigation | ||
import androidx.navigation.NavController | ||
import com.github.sikv.photos.R | ||
import com.github.sikv.photos.navigation.route.FeedbackRoute | ||
import javax.inject.Inject | ||
|
||
class FeedbackRouteImpl @Inject constructor() : FeedbackRoute { | ||
|
||
override fun present(navigation: Navigation?) { | ||
navigation?.addFragment(FeedbackFragment()) | ||
override fun present(navController: NavController) { | ||
navController.navigate(R.id.navigateToFeedback) | ||
} | ||
} |
16 changes: 5 additions & 11 deletions
16
app/src/main/java/com/github/sikv/photos/route/impl/PhotoDetailsRouteImpl.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,21 +1,15 @@ | ||
package com.github.sikv.photos.route.impl | ||
|
||
import com.github.sikv.photos.navigation.Navigation | ||
import com.github.sikv.photos.navigation.NavigationAnimation | ||
import androidx.navigation.NavController | ||
import com.github.sikv.photos.R | ||
import com.github.sikv.photos.navigation.args.PhotoDetailsFragmentArguments | ||
import com.github.sikv.photos.navigation.args.withArguments | ||
import com.github.sikv.photos.navigation.navigate | ||
import com.github.sikv.photos.navigation.route.PhotoDetailsRoute | ||
import com.github.sikv.photos.photo.details.PhotoDetailsFragment | ||
import javax.inject.Inject | ||
|
||
class PhotoDetailsRouteImpl @Inject constructor() : PhotoDetailsRoute { | ||
|
||
override fun present(navigation: Navigation?, args: PhotoDetailsFragmentArguments) { | ||
val photoDetailsFragment = PhotoDetailsFragment() | ||
.withArguments(args) | ||
|
||
navigation?.addFragment(photoDetailsFragment, | ||
animation = NavigationAnimation.SLIDE_V | ||
) | ||
override fun present(navController: NavController, args: PhotoDetailsFragmentArguments) { | ||
navController.navigate(R.id.navigateToPhotoDetails, args) | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
app/src/main/java/com/github/sikv/photos/route/impl/SearchRouteImpl.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.github.sikv.photos.route.impl | ||
|
||
import androidx.navigation.NavController | ||
import com.github.sikv.photos.R | ||
import com.github.sikv.photos.navigation.args.SearchFragmentArguments | ||
import com.github.sikv.photos.navigation.navigate | ||
import com.github.sikv.photos.navigation.route.SearchRoute | ||
import javax.inject.Inject | ||
|
||
class SearchRouteImpl @Inject constructor() : SearchRoute { | ||
|
||
override fun present(navController: NavController, args: SearchFragmentArguments) { | ||
navController.navigate(R.id.navigateToSearch, args) | ||
} | ||
} |
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
Oops, something went wrong.