Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
releasing 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosh committed Apr 2, 2017
1 parent a5df952 commit e3d37df
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ android {
applicationId "com.fastaccess.github"
minSdkVersion 21
targetSdkVersion 25
versionCode 141
versionName "1.4.1"
versionCode 150
versionName "1.5.0"
signingConfig signingConfigs.signing
buildConfigString "GITHUB_CLIENT_ID", (buildProperties.secrets['github_client_id'] | buildProperties.notThere['github_client_id']).string
buildConfigString "GITHUB_SECRET", (buildProperties.secrets['github_secret'] | buildProperties.notThere['github_secret']).string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,17 @@ class GistCommentsPresenter extends BasePresenter<GistCommentsMvp.View> implemen
}

@Override public void onItemClick(int position, View v, Comment item) {
if (item.getUser() != null) {
Login userModel = Login.getUser();
Login userModel = Login.getUser();
if (getView() == null) return;
if (v.getId() == R.id.delete) {
if (userModel != null && item.getUser().getLogin().equals(userModel.getLogin())) {
getView().onShowDeleteMsg(item.getId());
}
} else if (item.getId() == R.id.reply) {
if (getView() != null) getView().onTagUser(item.getUser());
} else if (item.getId() == R.id.edit) {
if (userModel != null && item.getUser().getLogin().equals(userModel.getLogin())) {
if (getView() != null) getView().onEditComment(item);
} else {
if (getView() != null) getView().onTagUser(item.getUser());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ public static IssueTimelineView newInstance(@NonNull Issue issueModel) {
}

@Override public void onToggle(int position, boolean isCollapsed) {
getSparseBooleanArray().clear();
getSparseBooleanArray().put(position, isCollapsed);
adapter.notifyDataSetChanged();
}

@Override public boolean isCollapsed(int position) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ public static PullRequestTimelineView newInstance(@NonNull PullRequest issueMode
}

@Override public void onToggle(int position, boolean isCollapsed) {
getSparseBooleanArray().clear();
getSparseBooleanArray().put(position, isCollapsed);
adapter.notifyDataSetChanged();
}

@Override public boolean isCollapsed(int position) {
Expand Down

0 comments on commit e3d37df

Please sign in to comment.