File tree Expand file tree Collapse file tree 2 files changed +34
-5
lines changed
app/src/main/res/navigation
bugbattle/src/main/java/bugbattle/io/bugbattle/service Expand file tree Collapse file tree 2 files changed +34
-5
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <navigation xmlns : android =" http://schemas.android.com/apk/res/android"
3
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4
+ xmlns : tools =" http://schemas.android.com/tools"
5
+ android : id =" @+id/nav_graph"
6
+ app : startDestination =" @id/FirstFragment" >
7
+
8
+ <fragment
9
+ android : id =" @+id/FirstFragment"
10
+ android : name =" bugbattle.io.bugbattle_android_sdk.FirstFragment"
11
+ android : label =" @string/first_fragment_label"
12
+ tools : layout =" @layout/fragment_first" >
13
+
14
+ <action
15
+ android : id =" @+id/action_FirstFragment_to_SecondFragment"
16
+ app : destination =" @id/SecondFragment" />
17
+ </fragment >
18
+ <fragment
19
+ android : id =" @+id/SecondFragment"
20
+ android : name =" bugbattle.io.bugbattle_android_sdk.SecondFragment"
21
+ android : label =" @string/second_fragment_label"
22
+ tools : layout =" @layout/fragment_second" >
23
+
24
+ <action
25
+ android : id =" @+id/action_SecondFragment_to_FirstFragment"
26
+ app : destination =" @id/FirstFragment" />
27
+ </fragment >
28
+ </navigation >
Original file line number Diff line number Diff line change @@ -20,16 +20,12 @@ public TouchGestureDetector(Application application) {
20
20
21
21
@ Override
22
22
public void initialize () {
23
+
23
24
application .registerActivityLifecycleCallbacks (new Application .ActivityLifecycleCallbacks () {
24
25
private View .OnClickListener onClickListener = null ;
25
26
26
27
@ Override
27
28
public void onActivityCreated (Activity activity , Bundle savedInstanceState ) {
28
-
29
- }
30
-
31
- @ Override
32
- public void onActivityStarted (Activity activity ) {
33
29
View relativeLayout = (View ) activity .getWindow ().getDecorView ().getRootView ();
34
30
relativeLayout .setClickable (true );
35
31
relativeLayout .setOnTouchListener (new View .OnTouchListener () {
@@ -59,6 +55,11 @@ public boolean onTouch(View v, MotionEvent event) {
59
55
});
60
56
}
61
57
58
+ @ Override
59
+ public void onActivityStarted (Activity activity ) {
60
+
61
+ }
62
+
62
63
@ Override
63
64
public void onActivityResumed (Activity activity ) {
64
65
You can’t perform that action at this time.
0 commit comments