Skip to content

Instantly share code, notes, and snippets.

@vestrel00
Created July 28, 2017 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vestrel00/30f246ba527c527c7756cdb0c579d084 to your computer and use it in GitHub Desktop.
Save vestrel00/30f246ba527c527c7756cdb0c579d084 to your computer and use it in GitHub Desktop.
C: 2 - navigation/Navigator.java
@Singleton
public final class Navigator {
@Inject
Navigator() {
}
public void toExample1(Context context) {
Intent intent = new Intent(context, Example1Activity.class);
context.startActivity(intent);
}
public void toExample2(Context context) {
Intent intent = new Intent(context, Example2Activity.class);
context.startActivity(intent);
}
public void toExample3(Context context) {
Intent intent = new Intent(context, Example3Activity.class);
context.startActivity(intent);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment