File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 17
17
with :
18
18
submodules : ' recursive'
19
19
fetch-depth : 0
20
+
20
21
- name : Get changed files
21
22
id : changed-files
22
23
uses :
tj-actions/[email protected]
28
29
**/*.kts
29
30
**/*.xml
30
31
32
+ - name : List all changed files
33
+ run : |
34
+ for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
35
+ echo "$file was changed"
36
+ done
37
+
31
38
check-codestyle :
32
39
needs : [ file-changes ]
33
40
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 27
27
28
28
<activity
29
29
android : name =" .MainActivity"
30
- android : configChanges =" orientation|screenSize"
31
30
android : exported =" true"
32
31
android : theme =" @style/Theme.Qbit" >
33
32
<intent-filter >
Original file line number Diff line number Diff line change @@ -56,14 +56,20 @@ class MainActivity : AppCompatActivity() {
56
56
when (status) {
57
57
ConfigStatus .EXISTS -> {
58
58
val bundle = bundleOf(TORRENT_INTENT_KEY to intent?.data.toString())
59
+ val navController =
60
+ findNavController(this @MainActivity, R .id.nav_host_fragment)
59
61
60
62
serverPrefsStore.data
61
63
.map { it.showNotification }
62
64
.onEach(::launchWorkManager)
63
65
.launchIn(lifecycleScope)
64
66
65
- findNavController(this @MainActivity, R .id.nav_host_fragment)
66
- .navigate(R .id.action_homeFragment_to_serverFragment, bundle)
67
+ if (navController.currentDestination?.id == R .id.homeFragment) {
68
+ navController.navigate(
69
+ R .id.action_homeFragment_to_serverFragment,
70
+ bundle
71
+ )
72
+ }
67
73
}
68
74
ConfigStatus .DOES_NOT_EXIST -> Log .i(ClientManager .tag, " No config found!" )
69
75
}
You can’t perform that action at this time.
0 commit comments