Skip to content

Commit

Permalink
#99 Release fixes (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
albu-razvan authored Feb 6, 2025
2 parents 83d0e90 + d8448eb commit 2f48556
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 44 deletions.
34 changes: 23 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,39 @@
# Stario

<img src="docs/logo_repo.png" width="128" alt="Stario logo">
<img src="docs/representative.png" alt="Stario representative">

[![Discord](https://img.shields.io/discord/1110537583726964820?label=Discord&logo=discord&logoColor=white)](https://discord.gg/WuVapMt9gY)
[![Latest release](https://img.shields.io/github/downloads/albu-razvan/Stario/total?label=Download&logo=android&logoColor=white)](https://github.com/albu-razvan/Stario/releases/latest)
[![Last commit](https://custom-icon-badges.demolab.com/github/last-commit/albu-razvan/Stario?logo=history&logoColor=white&label=Latest%20commit)](https://github.com/albu-razvan/Stario/commit)

Inspired by the minimalist phone concept, Stario aims to keep functionality and productivity at their peak in a simple and elegant format.

This repository houses the codebase of Stario v2, a rewrite of the original [Stario Launcher](https://play.google.com/store/apps/details?id=com.stario.launcher).
This repository houses the codebase of **Stario v2**, a rewrite of [Stario Launcher](https://play.google.com/store/apps/details?id=com.stario.launcher) with improvements in both performance and usability.

## Features

* Material You support
* Icon customisation support
* Glance widget
* Built in media player
* Application categories
* RSS/Atom reader
* _And more to come!_
* **Material You Support:** Seamlessly integrates with Android’s Material You design for a dynamic, personalized theme based on your wallpaper and device.

* **Application Customization:** Customize your home screen with different icon packs and icon shapes.

* **Built-In Weather Widget:** Easily access the current weather and forecast with a simple, integrated widget.

* **Built-In Media Player:** Control your media playback directly from within the launcher with minimalistic media player controls.

* **Application Categories:** Organize your apps by categories for a more organized app drawer experience.

* **RSS/Atom Reader:** Stay updated with your favorite news sources and blogs through an integrated RSS/Atom reader.

* **And more!**

## Download

The latest version of Stario can be found under [releases](https://github.com/albu-razvan/Stario/releases/latest).
The latest release of Stario is available for download on [GitHub](https://github.com/albu-razvan/Stario/releases/latest).

#### Compatibility:

Stario requires at least **SDK 28** (Android 9.0 Pie). It is compatible with AOSP (Android Open Source Project) as well as most prominent OEM devices. While Stario should work with custom ROMs, these have not been officially tested, so user feedback is appreciated.

## Join the Community

**Compatibility:** At least SDK 28 (Android 9.0 Pie) AOSP and most prominent OEMs. Custom ROMs should also work but have not been tested.
Have questions or want to interact with other Stario users? Join our [Discord Server](https://discord.gg/WuVapMt9gY) to chat with the developers and the community, share feedback, or get support.
16 changes: 8 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ android {
applicationId 'com.stario.launcher'
minSdkVersion 28
targetSdkVersion 35
versionCode 86
versionName '2.5 (Alpha)'
versionCode 87
versionName '2.6 (Alpha)'
resourceConfigurations += ["en"]
}
buildTypes {
Expand Down Expand Up @@ -79,16 +79,16 @@ dependencies {

// Transitive dependencies
// noinspection KtxExtensionAvailable
implementation 'androidx.activity:activity:1.9.3'
implementation 'androidx.activity:activity:1.10.0'
implementation 'androidx.annotation:annotation:1.9.1'
implementation 'androidx.appcompat:appcompat-resources:1.7.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0'
implementation 'androidx.compose.foundation:foundation:1.7.6'
implementation 'androidx.compose.runtime:runtime:1.7.6'
implementation 'androidx.compose.ui:ui-graphics:1.7.6'
implementation 'androidx.compose.ui:ui-unit:1.7.6'
implementation 'androidx.compose.ui:ui:1.7.6'
implementation 'androidx.compose.foundation:foundation:1.7.7'
implementation 'androidx.compose.runtime:runtime:1.7.7'
implementation 'androidx.compose.ui:ui-graphics:1.7.7'
implementation 'androidx.compose.ui:ui-unit:1.7.7'
implementation 'androidx.compose.ui:ui:1.7.7'
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
// noinspection KtxExtensionAvailable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ public void onCreate(Bundle savedInstanceState) {
attachSheets();
attachGlance();

wallpaperManager.setWallpaperOffsets(main.getWindowToken(), 0, 0);
updateWallpaperZoom(0);
main.post(() -> {
wallpaperManager.setWallpaperOffsets(main.getWindowToken(), 0, 0);
updateWallpaperZoom(0);
});

screenOnReceiver = new BroadcastReceiver() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,25 +271,6 @@ public void onChange(View view, int visibility) {
search.getMeasuredHeight(), 0);
});

if (!Utils.isMinimumSDK(Build.VERSION_CODES.R)) {
heightProvider.addKeyboardHeightObserver((height) -> {
searchLayoutTransition.setAnimate(false);

if (isKeyboardVisible()) {
scrollView.smoothScrollTo(0, 0, Animation.LONG.getDuration());
}

content.setPadding(content.getPaddingLeft(), content.getPaddingTop(),
content.getPaddingRight(), height + hint.getHeight());

((ViewGroup.MarginLayoutParams) search.getLayoutParams()).bottomMargin =
height + Measurements.getNavHeight();
search.requestLayout();

search.post(() -> searchLayoutTransition.setAnimate(true));
});
}

search.addOnLayoutChangeListener((v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) -> {
fader.setFadeSizes(Measurements.getSysUIHeight(), 0,
Measurements.getNavHeight() + Measurements.getDefaultPadding() +
Expand Down Expand Up @@ -496,6 +477,23 @@ public void onEnd(@NonNull WindowInsetsAnimationCompat animation) {
imeAnimation = null;
}
});
} else {
heightProvider.addKeyboardHeightObserver((height) -> {
searchLayoutTransition.setAnimate(false);

if (isKeyboardVisible()) {
scrollView.smoothScrollTo(0, 0, Animation.LONG.getDuration());
}

content.setPadding(content.getPaddingLeft(), content.getPaddingTop(), content.getPaddingRight(),
height + (hint.getVisibility() == View.VISIBLE ? hint.getHeight() : 0));

((ViewGroup.MarginLayoutParams) search.getLayoutParams()).bottomMargin =
height + Measurements.getNavHeight();
search.requestLayout();

search.post(() -> searchLayoutTransition.setAnimate(true));
});
}

search.setOnEditorActionListener((view, actionId, event) -> {
Expand Down Expand Up @@ -553,10 +551,11 @@ public void afterTextChanged(Editable editable) {
hint.setVisibility(!filteredQuery.isEmpty() &&
searchPreferences.getBoolean(WebAdapter.SEARCH_RESULTS, false) ?
View.VISIBLE : View.GONE);
hint.post(() ->
content.setPadding(content.getPaddingLeft(), content.getPaddingTop(), content.getPaddingRight(),
(Utils.isMinimumSDK(Build.VERSION_CODES.R) ? 0 : heightProvider.getKeyboardHeight()) +
hint.getVisibility() == View.VISIBLE ? hint.getHeight() : 0));
hint.post(() -> {
content.setPadding(content.getPaddingLeft(), content.getPaddingTop(), content.getPaddingRight(),
(Utils.isMinimumSDK(Build.VERSION_CODES.R) ? 0 : heightProvider.getKeyboardHeight()) +
(hint.getVisibility() == View.VISIBLE ? hint.getHeight() : 0));
});

if (filteredQuery.equals(query)) {
if (base.getVisibility() == View.VISIBLE) {
Expand Down
Binary file added docs/representative.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/representative.psd
Binary file not shown.

0 comments on commit 2f48556

Please sign in to comment.