use of me.sheimi.sgit.database.models.GitConfig in project MGit by maks.
the class ConfigAction method execute.
@Override
public void execute() {
try {
DialogRepoConfigBinding binding = DataBindingUtil.inflate(LayoutInflater.from(mActivity), R.layout.dialog_repo_config, null, false);
GitConfig gitConfig = new GitConfig(mRepo);
binding.setViewModel(gitConfig);
AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);
builder.setView(binding.getRoot()).setNeutralButton(R.string.label_done, null).create().show();
} catch (StopTaskException e) {
// FIXME: show error to user
Timber.e(e);
}
}
Aggregations