File tree 1 file changed +15
-0
lines changed
app/src/main/java/com/github/mobile/ui/repo
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 19
19
import android .app .Activity ;
20
20
21
21
import com .github .mobile .core .ResourcePager ;
22
+ import com .github .mobile .core .user .UserEventMatcher .UserPair ;
22
23
import com .github .mobile .ui .NewsFragment ;
23
24
import com .github .mobile .ui .issue .IssuesViewActivity ;
24
25
import com .github .mobile .ui .user .EventPager ;
26
+ import com .github .mobile .ui .user .UserViewActivity ;
25
27
26
28
import org .eclipse .egit .github .core .Issue ;
27
29
import org .eclipse .egit .github .core .Repository ;
30
+ import org .eclipse .egit .github .core .User ;
28
31
import org .eclipse .egit .github .core .client .PageIterator ;
29
32
import org .eclipse .egit .github .core .event .Event ;
30
33
@@ -68,4 +71,16 @@ protected void viewRepository(Repository repository) {
68
71
protected void viewIssue (Issue issue , Repository repository ) {
69
72
startActivity (IssuesViewActivity .createIntent (issue , repo ));
70
73
}
74
+
75
+ @ Override
76
+ protected boolean viewUser (User user ) {
77
+ startActivity (UserViewActivity .createIntent (user ));
78
+ return true ;
79
+ }
80
+
81
+ @ Override
82
+ protected void viewUser (UserPair users ) {
83
+ if (!viewUser (users .from ))
84
+ viewUser (users .to );
85
+ }
71
86
}
You can’t perform that action at this time.
0 commit comments