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

Commit

Permalink
this commit fixes #561 and releasing 2.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosh committed May 28, 2017
1 parent 3be7348 commit e1cff31
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ android {
applicationId "com.fastaccess.github"
minSdkVersion 21
targetSdkVersion 26
versionCode 251
versionName "2.5.1"
versionCode 252
versionName "2.5.2"
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
2 changes: 1 addition & 1 deletion app/src/main/java/com/fastaccess/helper/PrefGetter.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public static int notificationDurationMillis(@NonNull String prefValue) {
return (60 * 3) * 60; // 3 hours
}
}
return 0;
return -1;
}

public static boolean isTwiceBackButtonDisabled() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public class NotificationSchedulerJobTask extends JobService {

public static void scheduleJob(@NonNull Context context) {
int duration = PrefGetter.getNotificationTaskDuration();
scheduleJob(context, duration == 0 ? THIRTY_MINUTES : duration, false);
scheduleJob(context, duration, false);
}

public static void scheduleJob(@NonNull Context context, int duration, boolean cancel) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import android.support.annotation.Nullable;
import android.support.annotation.StringRes;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.fastaccess.R;
Expand Down Expand Up @@ -109,15 +108,7 @@ public static MyPullRequestFragment newInstance(@NonNull IssueState issueState,

@NonNull @Override public OnLoadMore<IssueState> getLoadMore() {
if (onLoadMore == null) {
onLoadMore = new OnLoadMore<IssueState>(getPresenter()) {
@Override protected void onShow(RecyclerView recyclerView) {
super.onShow(recyclerView);
}

@Override protected void onHide(RecyclerView recyclerView) {
super.onHide(recyclerView);
}
};
onLoadMore = new OnLoadMore<>(getPresenter());
}
onLoadMore.setParameter(issueState);
return onLoadMore;
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
<string name="team_event">Team</string>
<string name="deleted">Deleted</string>
<string name="unknown">Unknown</string>
<string name="commented_on_commit">Comment on commit</string>
<string name="commented_on_commit">Commented on commit</string>
<string name="organization_event" translatable="false">Organization</string>
<string name="card_event" translatable="false">Card</string>
<string name="project_event" translatable="false">Project</string>
Expand Down Expand Up @@ -458,4 +458,6 @@
<string name="image_error">Error loading image, please try again.</string>
<string name="trending">Trending</string>
<string name="not_really_working">Sort by emojies is not really working due to GitHub limitation</string>
<string name="scroll_up">Scroll Up</string>
<string name="scroll_down">Scroll down</string>
</resources>

0 comments on commit e1cff31

Please sign in to comment.