-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Daeda88/post_resume
Added Post Active to ensure events have been set up before actions occur
- Loading branch information
Showing
8 changed files
with
87 additions
and
4 deletions.
There are no files selected for viewing
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
16 changes: 16 additions & 0 deletions
16
WhenRobo/src/main/java/houtbecke/rs/when/robo/condition/NotPostActive.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,16 @@ | ||
package houtbecke.rs.when.robo.condition; | ||
|
||
import com.squareup.otto.Bus; | ||
|
||
import javax.inject.Inject; | ||
import javax.inject.Singleton; | ||
|
||
@Singleton | ||
public class NotPostActive extends BaseActive { | ||
|
||
@Inject | ||
public NotPostActive(Bus bus) { | ||
super(bus, false, false, false, true); | ||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
WhenRobo/src/main/java/houtbecke/rs/when/robo/condition/PostActive.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,15 @@ | ||
package houtbecke.rs.when.robo.condition; | ||
|
||
import com.squareup.otto.Bus; | ||
|
||
import javax.inject.Inject; | ||
import javax.inject.Singleton; | ||
|
||
@Singleton | ||
public class PostActive extends BaseActive { | ||
|
||
@Inject | ||
public PostActive(Bus bus) { | ||
super(bus, true, false, false, false); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
WhenRobo/src/main/java/houtbecke/rs/when/robo/condition/event/ActivityPostPause.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,11 @@ | ||
package houtbecke.rs.when.robo.condition.event; | ||
|
||
import android.app.Activity; | ||
|
||
import houtbecke.rs.when.robo.event.PauseEvent; | ||
|
||
public class ActivityPostPause extends ActivityEvent implements PauseEvent { | ||
public ActivityPostPause(Activity activity) { | ||
super(activity); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
WhenRobo/src/main/java/houtbecke/rs/when/robo/condition/event/ActivityPostResume.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,12 @@ | ||
package houtbecke.rs.when.robo.condition.event; | ||
|
||
import android.app.Activity; | ||
|
||
import houtbecke.rs.when.robo.event.ResumeEvent; | ||
|
||
public class ActivityPostResume extends ActivityEvent implements ResumeEvent { | ||
|
||
public ActivityPostResume(Activity activity) { | ||
super(activity); | ||
} | ||
} |