Created
April 29, 2017 11:51
-
-
Save smaugho/a7231a62290ee878c4993feda4d1788b to your computer and use it in GitHub Desktop.
OnActvityResult with DecleX
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
@EActivity(R.id.activity_main) | |
public class MainActivity extends Activity { | |
@Model | |
User_ user; | |
@Click | |
void showSettings() { | |
$SettingsActivity().userName(user.getName()).withResult(); | |
if ($SettingsActivity.OnResult) { | |
$Toast("Settings were changed") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment