Skip to content

Commit

Permalink
Merge branch 'LawnchairLauncher:14-dev' into 14-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
validcube authored Nov 16, 2024
2 parents 545b378 + 8a545d2 commit bd36a7e
Show file tree
Hide file tree
Showing 13 changed files with 427 additions and 386 deletions.
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import com.android.build.gradle.api.AndroidBasePlugin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id 'com.android.application' version "8.7.1"
id 'com.android.library' version "8.7.1" apply false
id 'com.android.test' version '8.7.1' apply false
id 'com.android.application' version "8.7.2"
id 'com.android.library' version "8.7.2" apply false
id 'com.android.test' version '8.7.2' apply false
id 'androidx.baselineprofile' version '1.3.3'
id 'org.jetbrains.kotlin.android' version "2.0.21"
id 'org.jetbrains.kotlin.plugin.compose' version "2.0.21"
Expand Down Expand Up @@ -36,7 +36,7 @@ allprojects {
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.core:core-ktx:1.15.0'
}
}

Expand Down Expand Up @@ -368,7 +368,7 @@ dependencies {
implementation 'com.github.ChickenHook:RestrictionBypass:2.2'
implementation 'dev.rikka.tools.refine:runtime:4.4.0'

implementation platform("androidx.compose:compose-bom:2024.10.00")
implementation platform("androidx.compose:compose-bom:2024.10.01")
implementation "androidx.compose.ui:ui"
implementation "androidx.compose.ui:ui-util"
debugImplementation "androidx.compose.ui:ui-tooling"
Expand All @@ -381,9 +381,9 @@ dependencies {
implementation 'androidx.compose.material3:material3'
implementation 'androidx.compose.material3:material3-window-size-class'
implementation "androidx.activity:activity-compose:1.9.3"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.8.6"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7"
implementation "androidx.navigation:navigation-compose:2.8.3"
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation "androidx.constraintlayout:constraintlayout:2.2.0"
implementation "androidx.palette:palette-ktx:1.0.0"
implementation "androidx.slice:slice-core:1.1.0-alpha02"
def accompanistVersion = '0.36.0'
Expand Down Expand Up @@ -414,7 +414,7 @@ dependencies {
// Persian Date
implementation 'com.github.samanzamani:PersianDate:1.7.1'

implementation 'com.airbnb.android:lottie:6.5.2'
implementation 'com.airbnb.android:lottie:6.6.0'

// Compose drag and drop library
implementation 'sh.calvin.reorderable:reorderable:2.4.0'
Expand Down Expand Up @@ -442,7 +442,7 @@ spotless {
kotlin {
target("lawnchair/src/**/*.kt")
ktlint().customRuleSets([
"io.nlopez.compose.rules:ktlint:0.4.16",
"io.nlopez.compose.rules:ktlint:0.4.17",
]).editorConfigOverride([
"ktlint_compose_compositionlocal-allowlist": "disabled",
"ktlint_compose_lambda-param-event-trailing": "disabled",
Expand Down
2 changes: 1 addition & 1 deletion lawnchair/res/values-hu-rHU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<!-- Experimental features -->
<string name="font_picker_label">A Betűkészlet testreszabása</string>
<string name="font_picker_description">Egyes szövegek változatlanok maradnak</string>
<string name="smartspace_calendar_label">A bepillantás naptárának testreszabása</string>
<string name="smartspace_calendar_label">Az Áttekintés naptárának testreszabása</string>
<string name="smartspace_calendar_description">Lehetővé teszi, hogy a dátum nem gregorián naptárban is megjelenjen</string>
<string name="workspace_increase_max_grid_size_label">A maximális rácsméret-korlát növelése</string>
<string name="workspace_increase_max_grid_size_description">A kezdőképernyő legnagyobb rácsméretének 10×10-ről 20×20-ra való növelése</string>
Expand Down
114 changes: 57 additions & 57 deletions lawnchair/res/values-ja-rJP/strings.xml

Large diffs are not rendered by default.

181 changes: 91 additions & 90 deletions lawnchair/res/values-pt-rPT/strings.xml

Large diffs are not rendered by default.

422 changes: 211 additions & 211 deletions lawnchair/res/values-th-rTH/strings.xml

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions lawnchair/res/values-vi-rVN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<!-- Miscellaneous -->
<string name="what_to_show">Những gì để hiển thị</string>
<!-- A11y description -->
<string name="accessibility_service_description">To lock your phone when performing a gesture, and to open Recents via gesture, Lawnchair requires accessibility access.\n\nLawnchair doesn\'t watch any user action, though the privilege to do so is required for all accessibility services. Lawnchair discards any event sent by the system.\n\nIn order to lock your phone, or to open Recents, Lawnchair uses the performGlobalAction Accessibility service.</string>
<string name="accessibility_service_description">Để mở khoá màn hình </string>
<string name="x_by_y">%1$d x %2$d</string>
<string name="x_and_y">%1$s &amp; %2$s</string>
<!--
Expand All @@ -81,17 +81,17 @@
-->
<string name="settings">Cài đặt</string>
<string name="general_label">Chung</string>
<string name="general_description">Colors, icon packs, notification dots</string>
<string name="general_description">Màu sắc, gói biểu tượng, dấu chấm thông báo</string>
<string name="home_screen_label">Trang chủ</string>
<string name="home_screen_description">Feed, grid, icons</string>
<string name="home_screen_description">Bản tin, lưới, biểu tượng</string>
<string name="dock_label">Khay</string>
<string name="dock_description">Thanh tìm kiếm, số biểu tượng</string>
<string name="app_drawer_label">Kho ứng dụng</string>
<string name="app_drawer_description">Ứng dụng bị ẩn, số cột, biểu tượng</string>
<string name="drawer_search_label">Drawer search</string>
<string name="drawer_search_description">Web suggestions, global search</string>
<string name="drawer_search_label">Ngăn tìm kiếm</string>
<string name="drawer_search_description">Gợi ý website, tìm kiếm chung</string>
<string name="folders_label">Thư mục</string>
<string name="folders_description">Row and column count</string>
<string name="folders_description">Số hàng và cột</string>
<string name="gestures_label">Cử chỉ</string>
<string name="gestures_description">Cử chỉ và chạm</string>
<string name="quickstep_label">Gần đây</string>
Expand All @@ -101,12 +101,12 @@
<string name="debug_restart_launcher">Restart Lawnchair</string>
<string name="experimental_features_label">Chức năng thử nghiệm</string>
<!-- Experimental features -->
<string name="font_picker_label">Font customization</string>
<string name="font_picker_label">Đổi phông chữ</string>
<string name="font_picker_description">Some text remains unchanged</string>
<string name="smartspace_calendar_label">At a Glance calendar customization</string>
<string name="smartspace_calendar_label">Tuỳ chỉnh lịch của xem nhanh</string>
<string name="smartspace_calendar_description">Allow showing date in non-Gregorian calendar systems</string>
<string name="workspace_increase_max_grid_size_label">Increase maximum grid size limit</string>
<string name="workspace_increase_max_grid_size_description">Increase maximum allowed home screen grid size from 10 x 10 to 20 x 20</string>
<string name="workspace_increase_max_grid_size_label">Tăng độ lớn tối đa của lưới</string>
<string name="workspace_increase_max_grid_size_description">Cho phép tăng kích thước từ 10x10 lên 20x20 trên màn hình chính</string>
<string name="always_reload_icons_label">Always reload icons</string>
<string name="always_reload_icons_description">Tránh sử dụng các biểu tượng được lưu trong bộ nhớ đệm từ các gói biểu tượng</string>
<string name="recents_lock_unlock">Lock/unlock</string>
Expand Down
18 changes: 18 additions & 0 deletions quickstep/src/com/android/launcher3/LauncherAnimationRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import android.os.RemoteException;
import android.view.IRemoteAnimationFinishedCallback;
import android.view.RemoteAnimationTarget;
import android.view.SurfaceControl;
import android.window.TransitionInfo;

import androidx.annotation.BinderThread;
import androidx.annotation.Nullable;
Expand Down Expand Up @@ -102,6 +104,22 @@ public void onAnimationStart(
}
}

// Introduced in NothingOS 2.5.5, needed in 2.6
@BinderThread
public void onAnimationStartWithSurfaceTransaction(
int transit,
TransitionInfo transitionInfo,
SurfaceControl.Transaction transaction,
RemoteAnimationTarget[] appTargets,
RemoteAnimationTarget[] wallpaperTargets,
RemoteAnimationTarget[] nonAppTargets,
Runnable runnable) {
if (transaction != null) {
transaction.apply();
}
onAnimationStart(transit, appTargets, wallpaperTargets, nonAppTargets, runnable);
}

private RemoteAnimationFactory getFactory() {
RemoteAnimationFactory factory = mFactory.get();
return factory != null ? factory : DEFAULT_FACTORY;
Expand Down
14 changes: 14 additions & 0 deletions quickstep/src/com/android/quickstep/RecentsAnimationCallbacks.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
import android.graphics.Rect;
import android.util.ArraySet;
import android.view.RemoteAnimationTarget;
import android.view.SurfaceControl;
import android.window.TransitionInfo;

import androidx.annotation.BinderThread;
import androidx.annotation.NonNull;
Expand Down Expand Up @@ -99,6 +101,18 @@ public final void onAnimationStart(RecentsAnimationControllerCompat controller,
homeContentInsets, minimizedHomeBounds);
}

// Introduced in NothingOS 2.5.5, needed in 2.6
@BinderThread
public final void onAnimationStart(RecentsAnimationControllerCompat controller,
TransitionInfo transitionInfo, SurfaceControl.Transaction transaction,
RemoteAnimationTarget[] apps, RemoteAnimationTarget[] wallpapers,
Rect homeContentInsets, Rect minimizedHomeBounds) {
if (transaction != null) {
transaction.apply();
}
onAnimationStart(controller, apps, wallpapers, homeContentInsets, minimizedHomeBounds);
}

// Called only in R+ platform
@BinderThread
public final void onAnimationStart(RecentsAnimationControllerCompat animationController,
Expand Down
5 changes: 3 additions & 2 deletions quickstep/src/com/android/quickstep/SystemUiProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -1489,8 +1489,9 @@ public void onAnimationStartWithSurfaceTransaction(
RemoteAnimationTarget[] wallpapers,
Rect homeContentInsets,
Rect minimizedHomeBounds) {
listener.onAnimationStart(new RecentsAnimationControllerCompat(controller), apps,
wallpapers, homeContentInsets, minimizedHomeBounds);
listener.onAnimationStart(new RecentsAnimationControllerCompat(controller),
transitionInfo, transaction, apps, wallpapers,
homeContentInsets, minimizedHomeBounds);
}

@Override
Expand Down
7 changes: 3 additions & 4 deletions src/com/android/launcher3/views/OptionsPopupView.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,10 @@ private static boolean toggleHomeScreenLock(View v) {
return true;
}

private static boolean startSystemSettings(View view) {
final Launcher launcher = Launcher.getLauncher(view.getContext());
private static boolean startSystemSettings(View v) {
final Launcher launcher = Launcher.getLauncher(v.getContext());
final Intent intent = new Intent(Settings.ACTION_SETTINGS);
launcher.startActivity(intent);
return true;
return launcher.startActivitySafely(v, intent, placeholderInfo(intent)) != null;
}

static WorkspaceItemInfo placeholderInfo(Intent intent) {
Expand Down
2 changes: 1 addition & 1 deletion systemUILog/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ compileOnlyCommonJars()
dependencies {
compileOnly projects.systemUIPluginCore
compileOnly projects.systemUICommon
implementation 'com.google.errorprone:error_prone_annotations:2.34.0'
implementation 'com.google.errorprone:error_prone_annotations:2.35.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

import android.graphics.Rect;
import android.view.RemoteAnimationTarget;
import android.view.SurfaceControl;
import android.window.TransitionInfo;

import com.android.systemui.shared.recents.model.ThumbnailData;

Expand All @@ -31,6 +33,12 @@ void onAnimationStart(RecentsAnimationControllerCompat controller,
RemoteAnimationTarget[] apps, RemoteAnimationTarget[] wallpapers,
Rect homeContentInsets, Rect minimizedHomeBounds);

// Introduced in NothingOS 2.5.5, needed in 2.6
void onAnimationStart(RecentsAnimationControllerCompat controller,
TransitionInfo transitionInfo, SurfaceControl.Transaction transaction,
RemoteAnimationTarget[] apps, RemoteAnimationTarget[] wallpapers,
Rect homeContentInsets, Rect minimizedHomeBounds);

/**
* Called when the animation into Recents was canceled. This call is made on the binder thread.
*/
Expand Down
2 changes: 1 addition & 1 deletion systemUnFold/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ dependencies {
ksp "com.google.dagger:hilt-compiler:$daggerVersion"

implementation "androidx.concurrent:concurrent-futures:1.2.0"
implementation "androidx.lifecycle:lifecycle-common:2.8.6"
implementation "androidx.lifecycle:lifecycle-common:2.8.7"
implementation "androidx.dynamicanimation:dynamicanimation:1.0.0"
}

0 comments on commit bd36a7e

Please sign in to comment.