Skip to content

Instantly share code, notes, and snippets.

@smaugho
Created April 29, 2017 11:51
Show Gist options
  • Save smaugho/a7231a62290ee878c4993feda4d1788b to your computer and use it in GitHub Desktop.
Save smaugho/a7231a62290ee878c4993feda4d1788b to your computer and use it in GitHub Desktop.
OnActvityResult with DecleX
@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