Skip to content

Commit

Permalink
Minor updates per reviewer's comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGitonga committed Aug 23, 2023
1 parent 0eb896c commit ef34293
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class AdministratorControlsActivity :
PROFILE_LIST_FRAGMENT
}
profileId = savedInstanceState?.extractCurrentUserProfileId()
?: ProfileId.newBuilder().apply { internalId = -1 }.build()
?: ProfileId.newBuilder().setInternalId(-1).build()
administratorControlsActivityPresenter.handleOnCreate(
extraControlsTitle,
lastLoadedFragment,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class AdminPinActivityPresenter @Inject constructor(
AdminAuthEnum.PROFILE_ADMIN_CONTROLS.value -> {
activity.startActivity(
AdministratorControlsActivity.createAdministratorControlsActivityIntent(
context, activity.intent.extractCurrentUserProfileId()
context, profileId
)
)
activity.finish()
Expand All @@ -129,7 +129,7 @@ class AdminPinActivityPresenter @Inject constructor(
activity.intent.getIntExtra(
ADMIN_PIN_COLOR_RGB_EXTRA_KEY, -10710042
),
activity.intent.extractCurrentUserProfileId()
profileId
)
)
activity.finish()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ProfileEditDeletionDialogFragment : InjectableDialogFragment() {
dialog.dismiss()
}
.setPositiveButton(R.string.profile_edit_delete_dialog_positive) { dialog, _ ->
profileEditDialogInterface.deleteProfileByInternalProfileId(profileId)
profileEditDialogInterface.deleteProfileByProfileId(profileId)
}
.create()
return alertDialog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import org.oppia.android.app.model.ProfileId
interface ProfileEditDialogInterface {

/** Handles profile deletion in [ProfileEditFragment]. */
fun deleteProfileByInternalProfileId(profileId: ProfileId)
fun deleteProfileByProfileId(profileId: ProfileId)
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ProfileEditFragment :
)
}

override fun deleteProfileByInternalProfileId(profileId: ProfileId) {
override fun deleteProfileByProfileId(profileId: ProfileId) {
profileEditFragmentPresenter.deleteProfile(profileId)
}

Expand Down

0 comments on commit ef34293

Please sign in to comment.