Skip to content
Snippets Groups Projects
Commit 4e572bae authored by Jawnnypoo's avatar Jawnnypoo
Browse files

Fix crashes

parent b89bb730
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -98,11 +98,16 @@ public class AddIssueActivity extends MorphActivity {
private AddIssueLabelAdapter mLabelsAdapter;
private Teleprinter mTeleprinter;
 
@OnClick({R.id.text_add_labels, R.id.list_labels})
@OnClick(R.id.text_add_labels)
void onAddLabelsClick() {
NavigationManager.navigateToAddLabels(AddIssueActivity.this, mProject, mIssue);
}
 
@OnClick(R.id.list_labels)
void onLabelsClicked() {
NavigationManager.navigateToAddLabels(AddIssueActivity.this, mProject, mIssue);
}
private final Callback<List<Milestone>> mMilestonesCallback = new EasyCallback<List<Milestone>>() {
@Override
public void success(@NonNull List<Milestone> response) {
Loading
Loading
Loading
Loading
@@ -139,8 +139,12 @@ public class BuildDescriptionFragment extends ButterKnifeFragment {
} else {
mTextFinished.setVisibility(View.GONE);
}
bindRunner(build.getRunner());
bindCommit(build.getCommit());
if (build.getRunner() != null) {
bindRunner(build.getRunner());
}
if(build.getCommit() != null) {
bindCommit(build.getCommit());
}
}
 
private void bindRunner(Runner runner) {
Loading
Loading
Loading
Loading
@@ -33,10 +33,11 @@ public class Label {
return mName;
}
 
public @ColorInt int getColor() {
@ColorInt
public int getColor() {
try {
return Color.parseColor(mColor);
} catch (IllegalArgumentException e) {
} catch (Exception e) {
return Color.TRANSPARENT;
}
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment