Skip to content

Commit

Permalink
chore: reduce per paging limit (#635)
Browse files Browse the repository at this point in the history
* chore: reduce default per paging limit
* chore: reduce pager items and revert back to serial threadpool
  • Loading branch information
wax911 authored Jan 27, 2024
1 parent 2985837 commit c49569f
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 31 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/version-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ jobs:
MINOR=$((VER[1] * 10000))
PATCH=${VER[2]}
CODE=$((MAJOR + MINOR + PATCH))
echo "version=$(cat VERSION)" > gradle/release.properties
echo "code=$CODE" >> gradle/release.properties
echo "name=v$(cat VERSION)" >> gradle/release.properties
echo "version=$(cat VERSION)" > gradle/version.properties
echo "code=$CODE" >> gradle/version.properties
echo "name=v$(cat VERSION)" >> gradle/version.properties
- name: Show release info
run: cat gradle/release.properties
run: cat gradle/version.properties

- name: Commit release.properties
- name: Commit version.properties
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add gradle/release.properties
git add gradle/version.properties
git commit -m "Bump version to $(cat VERSION)"
- name: Push changes
Expand Down
17 changes: 5 additions & 12 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/.meta/version.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"code": 1011000000,
"code": 1011000001,
"migration": false,
"minSdk": 21,
"releaseNotes": "",
"version": "1.11.0",
"version": "1.11.1",
"appId": "com.mxt.anitrend"
}
2 changes: 1 addition & 1 deletion app/src/main/assets/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Read the **FAQ** for issues regarding NSFW and notifications. Goto **Options** -
## What's Changed

### Enhancements
- New application icon
- Reduce the number of items loaded per page, hopefully will result in less request timeouts

### Current Issues
- Gifs may show artifacts if more than one is playing at a given moment (with experimental markdown support in settings)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ViewModelBase<T>: ViewModel(), RetroCallback<T> {
*/
fun requestData(@KeyUtil.RequestType request_type: Int, context: Context) {
mLoader = RequestHandler(params, this, request_type)
mLoader?.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, context)
mLoader?.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR, context)
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/mxt/anitrend/util/KeyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public interface KeyUtil {
float AspectRatio = 1.37f;
float WideAspectRatio = 0.95f;
float PEEK_HEIGHT = 200f;
int PAGING_LIMIT = 42, GLIDE_REQUEST_TIMEOUT = 10000, SINGLE_ITEM_LIMIT = 1;
int PAGING_LIMIT = 21, GLIDE_REQUEST_TIMEOUT = 10000, SINGLE_ITEM_LIMIT = 1;

/** Notification Actions */
String NOTIFICATION_ID = "anitrend_notification_id";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PropertiesReader(project: Project) {
private val properties = Properties(2)

init {
val releaseFile = File(project.rootDir, "gradle/release.properties")
val releaseFile = File(project.rootDir, "gradle/version.properties")
if (!releaseFile.exists()) {
project.logger.error("Release file cannot be found in path: $releaseFile")
}
Expand Down
2 changes: 0 additions & 2 deletions gradle/release.properties

This file was deleted.

4 changes: 2 additions & 2 deletions gradle/version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=1.11.0
code=1011000000
version=1.11.1
code=1011000001

0 comments on commit c49569f

Please sign in to comment.