From abbc2f7a559ab181a76d548b976f84ffd10913e8 Mon Sep 17 00:00:00 2001 From: Saul Henriquez Date: Thu, 25 Feb 2021 14:55:29 -0600 Subject: [PATCH] Use marquee instead of truncate at end event provider Signed-off-by: Saul Henriquez --- .../smartspace/OmegaSmartspaceController.kt | 2 +- .../shared/plugins/PluginManagerImpl.java | 3 +-- .../android/systemutils/ColorExtractor.java | 22 ++++++++++--------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/Omega/src/com/saggitt/omega/smartspace/OmegaSmartspaceController.kt b/Omega/src/com/saggitt/omega/smartspace/OmegaSmartspaceController.kt index 8f9f1f223e..6181bd47a7 100644 --- a/Omega/src/com/saggitt/omega/smartspace/OmegaSmartspaceController.kt +++ b/Omega/src/com/saggitt/omega/smartspace/OmegaSmartspaceController.kt @@ -531,7 +531,7 @@ class OmegaSmartspaceController(val context: Context) { data class Line @JvmOverloads constructor( val text: CharSequence, - val ellipsize: TextUtils.TruncateAt? = TextUtils.TruncateAt.END) { + val ellipsize: TextUtils.TruncateAt? = TextUtils.TruncateAt.MARQUEE) { constructor(context: Context, textRes: Int) : this(context.getString(textRes)) } diff --git a/SystemUISharedLib/src/main/java/com/android/systemui/shared/plugins/PluginManagerImpl.java b/SystemUISharedLib/src/main/java/com/android/systemui/shared/plugins/PluginManagerImpl.java index f47ea3f2bf..c7b939c87f 100644 --- a/SystemUISharedLib/src/main/java/com/android/systemui/shared/plugins/PluginManagerImpl.java +++ b/SystemUISharedLib/src/main/java/com/android/systemui/shared/plugins/PluginManagerImpl.java @@ -87,11 +87,10 @@ public class PluginManagerImpl extends BroadcastReceiver implements PluginManage private Looper mLooper; public PluginManagerImpl(Context context, PluginInitializer initializer) { - this(context, new PluginInstanceManagerFactory(), Build.IS_DEBUGGABLE, + this(context, new PluginInstanceManagerFactory(), true, (UncaughtExceptionHandler) invoke(sGetUncaughtExceptionPreHandler, null), initializer); } - @VisibleForTesting PluginManagerImpl(Context context, PluginInstanceManagerFactory factory, boolean debuggable, UncaughtExceptionHandler defaultHandler, final PluginInitializer initializer) { mContext = context; diff --git a/SystemUISharedLib/src/main/java/com/android/systemutils/ColorExtractor.java b/SystemUISharedLib/src/main/java/com/android/systemutils/ColorExtractor.java index 77e04af8a3..caa08f214d 100644 --- a/SystemUISharedLib/src/main/java/com/android/systemutils/ColorExtractor.java +++ b/SystemUISharedLib/src/main/java/com/android/systemutils/ColorExtractor.java @@ -1,17 +1,19 @@ /* - * Copyright (C) 2017 The Android Open Source Project + * This file is part of Omega Launcher + * Copyright (c) 2021 Saul Henriquez * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. * - * http://www.apache.org/licenses/LICENSE-2.0 + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ package com.android.systemutils;