-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Amr Hossam <[email protected]>
- Loading branch information
1 parent
d30da92
commit 3ae68f9
Showing
9 changed files
with
172 additions
and
31 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
onebusaway-android/src/main/java/org/onebusaway/android/ui/survey/SurveyActionsListener.java
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.onebusaway.android.ui.survey; | ||
|
||
public interface SurveyActionsListener { | ||
void onSkipSurvey(); | ||
void onRemindMeLater(); | ||
void onCancelSurvey(); | ||
} |
25 changes: 25 additions & 0 deletions
25
onebusaway-android/src/main/java/org/onebusaway/android/ui/survey/SurveyDialogActions.java
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.onebusaway.android.ui.survey; | ||
|
||
public class SurveyDialogActions { | ||
|
||
private static SurveyActionsListener listener; | ||
|
||
public static void setDialogActionListener(SurveyActionsListener dialogListener) { | ||
listener = dialogListener; | ||
} | ||
|
||
public static void handleSkipSurvey() { | ||
if (listener == null) return; | ||
listener.onSkipSurvey(); | ||
} | ||
|
||
public static void handleRemindMeLater() { | ||
if (listener == null) return; | ||
listener.onRemindMeLater(); | ||
} | ||
|
||
public static void handleCancel() { | ||
if (listener == null) return; | ||
listener.onCancelSurvey(); | ||
} | ||
} |
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