diff --git a/app/src/main/java/net/pokeranalytics/android/ui/activity/HomeActivity.kt b/app/src/main/java/net/pokeranalytics/android/ui/activity/HomeActivity.kt index bb29ca09..1e1135bb 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/activity/HomeActivity.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/activity/HomeActivity.kt @@ -79,51 +79,6 @@ class HomeActivity : BaseActivity() { } -// override fun onNewIntent(intent: Intent?) { -// super.onNewIntent(intent) -// -// setIntent(intent) -// intent?.let { -// -// when (intent.action) { -// "android.intent.action.VIEW" -> { // import -// val data = it.data -// if (data != null) { -// this.requestImportConfirmation(data) -// } else { -// throw PAIllegalStateException("URI null on import") -// } -// } -// else -> { -// Timber.w("Intent ${intent.action} unmanaged") -// } -// } -// } -// -// } - -// override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { -// super.onActivityResult(requestCode, resultCode, data) -// -// when (requestCode) { -// RequestCode.IMPORT.value -> { -// if (resultCode == ResultCode.IMPORT_UNRECOGNIZED_FORMAT.value) { -// showAlertDialog(context = this, message = R.string.unknown_import_format_popup_message) -// } -// } -// } -// } - - // Import - -// private fun requestImportConfirmation(uri: Uri) { -// -// showAlertDialog(context = this, title = R.string.import_confirmation, showCancelButton = true, positiveAction = { -// ImportActivity.newInstanceForResult(this, uri) -// }) -// -// } - private fun observeRealmObjects() { val realm = getRealm()