forked from emilsjolander/IntentBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97219dd
commit 9791dad
Showing
3 changed files
with
73 additions
and
9 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
26 changes: 26 additions & 0 deletions
26
sample/src/main/java/se/emilsjolander/intentbuilder/sample/MySubClass.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,26 @@ | ||
package se.emilsjolander.intentbuilder.sample; | ||
|
||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.widget.TextView; | ||
|
||
import se.emilsjolander.intentbuilder.Extra; | ||
import se.emilsjolander.intentbuilder.IntentBuilder; | ||
import se.emilsjolander.intentbuilder.Optional; | ||
|
||
@IntentBuilder | ||
public class MySubClass extends MySuperClass { | ||
|
||
@Extra @Optional | ||
String three; | ||
|
||
@Extra @Optional | ||
String four; | ||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
MySubClassIntentBuilder.inject(getIntent(), this); | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
sample/src/main/java/se/emilsjolander/intentbuilder/sample/MySuperClass.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,24 @@ | ||
package se.emilsjolander.intentbuilder.sample; | ||
|
||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.widget.TextView; | ||
|
||
import se.emilsjolander.intentbuilder.Extra; | ||
import se.emilsjolander.intentbuilder.IntentBuilder; | ||
import se.emilsjolander.intentbuilder.Optional; | ||
|
||
public class MySuperClass extends AppCompatActivity { | ||
|
||
@Extra | ||
String one; | ||
|
||
@Extra | ||
String two; | ||
|
||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
} | ||
|
||
} |