Skip to content

Commit

Permalink
Remove empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dattasneha committed Sep 5, 2024
1 parent 6566832 commit d6b60f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ class ExplorationActivityPresenter @Inject constructor(
context.startActivity(intent)
true
}

R.id.action_help -> {
val intent = HelpActivity.createHelpActivityIntent(
activity,
Expand All @@ -232,7 +231,6 @@ class ExplorationActivityPresenter @Inject constructor(
context.startActivity(intent)
true
}

else -> false
}
}
Expand Down Expand Up @@ -294,13 +292,11 @@ class ExplorationActivityPresenter @Inject constructor(
when (it) {
is AsyncResult.Pending ->
oppiaLogger.d("ExplorationActivity", "Stopping exploration")

is AsyncResult.Failure -> {
oppiaLogger.e("ExplorationActivity", "Failed to stop exploration", it.error)
// Allow the user to always exit if they get into a broken state.
backPressActivitySelector()
}

is AsyncResult.Success -> {
oppiaLogger.d("ExplorationActivity", "Successfully stopped exploration")
maybeShowSurveyDialog(profileId, topicId)
Expand Down Expand Up @@ -380,7 +376,6 @@ class ExplorationActivityPresenter @Inject constructor(
)
EphemeralExploration.getDefaultInstance()
}

is AsyncResult.Pending -> EphemeralExploration.getDefaultInstance()
is AsyncResult.Success -> ephemeralExpResult.value
}
Expand All @@ -390,7 +385,6 @@ class ExplorationActivityPresenter @Inject constructor(
when (parentScreen) {
ExplorationActivityParams.ParentScreen.TOPIC_SCREEN_LESSONS_TAB,
ExplorationActivityParams.ParentScreen.STORY_SCREEN -> activity.finish()

ExplorationActivityParams.ParentScreen.PARENT_SCREEN_UNSPECIFIED,
ExplorationActivityParams.ParentScreen.UNRECOGNIZED -> {
// Default to the topic activity.
Expand Down Expand Up @@ -507,15 +501,13 @@ class ExplorationActivityPresenter @Inject constructor(
oldestCheckpointExplorationTitle = it.value.explorationTitle
}
}

is AsyncResult.Failure -> {
oppiaLogger.e(
"ExplorationActivity",
"Failed to retrieve oldest saved checkpoint details.",
it.error
)
}

is AsyncResult.Pending -> {} // Wait for an actual result.
}
}
Expand Down Expand Up @@ -543,12 +535,10 @@ class ExplorationActivityPresenter @Inject constructor(
learnerAnalyticsLogger.explorationAnalyticsLogger.value?.logLessonSavedAdvertently()
stopExploration(isCompletion = false)
}

CheckpointState.CHECKPOINT_SAVED_DATABASE_EXCEEDED_LIMIT -> {
learnerAnalyticsLogger.explorationAnalyticsLogger.value?.logLessonSavedAdvertently()
showProgressDatabaseFullDialogFragment()
}

else -> showUnsavedExplorationDialogFragment()
}
}
Expand All @@ -564,7 +554,6 @@ class ExplorationActivityPresenter @Inject constructor(
null, is AsyncResult.Pending -> {
oppiaLogger.d("ExplorationActivity", "A gating decision is pending")
}

is AsyncResult.Failure -> {
oppiaLogger.e(
"ExplorationActivity",
Expand All @@ -573,7 +562,6 @@ class ExplorationActivityPresenter @Inject constructor(
)
backPressActivitySelector()
}

is AsyncResult.Success -> {
if (gatingResult.value) {
val dialogFragment =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,13 @@ class ResumeLessonActivityPresenter @Inject constructor(
)
Profile.getDefaultInstance()
}

is AsyncResult.Pending -> {
oppiaLogger.d(
"ResumeLessonActivity",
"Result is pending"
)
Profile.getDefaultInstance()
}

is AsyncResult.Success -> profileResult.value
}.readingTextSize
}
Expand Down

0 comments on commit d6b60f9

Please sign in to comment.