Skip to content

Commit

Permalink
Read 0.2.1 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
berkaytumal committed Aug 21, 2024
1 parent 96f30ca commit 974cf18
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId = "web.bmdominatezz.gravy"
minSdk = 26
targetSdk = 34
versionCode = 20 //011
versionName = "0.2.0-beta.2"
versionCode = 21 //011
versionName = "0.2.1-beta.2"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ public String retrieveApps() throws JSONException {
Log.d("groovelauncher", "retrieveApps: " + mainActivity.webView.retrievedApps.toString());
JSONArray retrievedApps = new JSONArray();
for (ResolveInfo resolveInfo : mainActivity.webView.retrievedApps) {
JSONObject appInfo = new JSONObject();
appInfo.put("packageName", resolveInfo.activityInfo.packageName);
appInfo.put("label", resolveInfo.loadLabel(mainActivity.packageManager).toString());
retrievedApps.put(appInfo);
if (!resolveInfo.activityInfo.packageName.equals("web.bmdominatezz.gravy")) {
JSONObject appInfo = new JSONObject();
appInfo.put("packageName", resolveInfo.activityInfo.packageName);
appInfo.put("label", resolveInfo.loadLabel(mainActivity.packageManager).toString());
retrievedApps.put(appInfo);
}
}
JSONObject grooveSettings = new JSONObject();
grooveSettings.put("packageName", "groove.internal.settings");
Expand Down
6 changes: 3 additions & 3 deletions src/scripts/grooveMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class GrooveMock {
var retrievedApps = this.#retrievedApps
$.getJSON(mockURL, function (data) {
data.apps.forEach(app => {
retrievedApps.push({ packageName: app.packageName, label: app.label })
if (app.packageName != "web.bmdominatezz.gravy") retrievedApps.push({ packageName: app.packageName, label: app.label })
});
retrievedApps.push({ packageName: "groove.internal.settings", label: "Groove Settings" })
});
Expand Down Expand Up @@ -54,10 +54,10 @@ class GrooveMock {
openURL(url) {
window.open(url, "_blank")
}
getAppVersion(){
getAppVersion() {
return "web-test"
}
getWebViewVersion(){
getWebViewVersion() {
return "chrome"
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/iconPack.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const iconPackConverter = [
//Sim Menu
{ apps: ["com.android.stk"], icon: "", pack: 1 },
//Mail
{ apps: ["com.google.android.gm", "com.samsung.android.email.provider"], icon: "󰏆", pack: 1 },
{ apps: ["com.google.android.gm", "com.samsung.android.email.provider"], icon: "", pack: 1 },
//FM Radio
{ apps: ["com.android.app.fm", "com.sec.android.app.fm"], icon: "󰐹", pack: 1 },
//Health
Expand Down
4 changes: 3 additions & 1 deletion src/scripts/pages/tileList.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,12 @@ var wallpaperLastScroll = 0
var wallpaperScroll = 0
$(window).on("finishedLoading", () => {
window.scrollers.tile_page_scroller.scroller.translater.hooks.on('translate', (e) => {
if(!document.querySelector("div.slide-page-home.wallpaper-behind")) return;
const deltaY = wallpaperLastScroll - e.y
wallpaperScroll += deltaY / 300
wallpaperScroll = wallpaperScroll < 0 ? 0 : wallpaperScroll > 1 ? 1 : wallpaperScroll
document.querySelector("div.slide-page-home.wallpaper-behind").style.setProperty("background-position", `0px ${(wallpaperScroll) * -100}px`)

document.querySelector("div.slide-page-home.wallpaper-behind").style.setProperty("background-position", `50% ${(wallpaperScroll) * -100}px`)
wallpaperLastScroll = e.y


Expand Down
4 changes: 2 additions & 2 deletions src/styles/pages/tileList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ div.tile-list-page {
}
div.slide-page-home.wallpaper-behind{
background-repeat: no-repeat;
background-position: 0px 0px;
background-size: cover;
background-position: 50% 0px;
background-size: auto calc(100% + 100px);
}
div.tile-list-container,
div.tile-list-inner-container {
Expand Down

0 comments on commit 974cf18

Please sign in to comment.