-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add logic to tie together all pieces of the previous deprecatio…
…n milestones
- Loading branch information
Showing
10 changed files
with
141 additions
and
26 deletions.
There are no files selected for viewing
12 changes: 10 additions & 2 deletions
12
app/src/main/java/org/oppia/android/app/notice/DeprecationNoticeActionListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
package org.oppia.android.app.notice | ||
|
||
import org.oppia.android.app.splash.DeprecationNoticeActionType | ||
|
||
/** Listener for when an option on any deprecation dialog is clicked. */ | ||
interface DeprecationNoticeActionListener { | ||
/** Called when a dialog button is clicked. */ | ||
fun onActionButtonClicked(noticeType: DeprecationNoticeActionType) | ||
} | ||
|
||
/** Enum class for the various deprecation notice actions available to the user. */ | ||
enum class DeprecationNoticeActionType { | ||
/** Action for when the user presses the 'Close' option on a deprecation dialog. */ | ||
CLOSE, | ||
/** Action for when the user presses the 'Dismiss' option on a deprecation dialog. */ | ||
DISMISS, | ||
/** Action for when the user presses the 'Update' option on a deprecation dialog. */ | ||
UPDATE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters