File tree Expand file tree Collapse file tree
app/src/main/java/io/github/sds100/keymapper Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ abstract class BaseMainActivity : AppCompatActivity() {
157157 return @launchRepeatOnLifecycle
158158 }
159159
160- when (intent.action) {
160+ when (intent? .action) {
161161 ACTION_SHOW_ACCESSIBILITY_SETTINGS_NOT_FOUND_DIALOG -> {
162162 viewModel.onCantFindAccessibilitySettings()
163163 viewModel.handledActivityLaunchIntent = true
@@ -228,10 +228,15 @@ abstract class BaseMainActivity : AppCompatActivity() {
228228 }
229229 }
230230
231- private fun importKeyMaps (intent : Intent ) {
231+ private fun importKeyMaps (intent : Intent ? ) {
232+ intent ? : return
233+
232234 if (intent.action == Intent .ACTION_VIEW ) {
233235 intent.data?.let {
234236 homeViewModel.onChooseImportFile(it.toString())
237+
238+ // Do not want to import again on a configuration change so set it to null
239+ this .intent = null
235240 }
236241 }
237242 }
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ Create testing release
2929
3030Create and deploy production release
3131
32- ### alpha
32+ ### internal
3333
3434``` sh
35- [bundle exec] fastlane alpha
35+ [bundle exec] fastlane internal
3636```
3737
38- Deploy alpha release
38+ Create and deploy internal testing release
3939
4040----
4141
You can’t perform that action at this time.
0 commit comments