From a6b7d90b97882019a334b19070308183d9028ae3 Mon Sep 17 00:00:00 2001 From: Zongle Wang Date: Fri, 2 Feb 2024 18:26:26 +0800 Subject: [PATCH] Extend more AppCompatActivity (#50) --- .../com/android/launcher3/proxy/ProxyActivityStarter.java | 5 +++-- .../com/android/quickstep/interaction/AllSetActivity.java | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/quickstep/src/com/android/launcher3/proxy/ProxyActivityStarter.java b/quickstep/src/com/android/launcher3/proxy/ProxyActivityStarter.java index 6d90b035338..b77e8234705 100644 --- a/quickstep/src/com/android/launcher3/proxy/ProxyActivityStarter.java +++ b/quickstep/src/com/android/launcher3/proxy/ProxyActivityStarter.java @@ -16,7 +16,6 @@ package com.android.launcher3.proxy; -import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; @@ -24,9 +23,11 @@ import android.os.Bundle; import android.util.Log; +import androidx.appcompat.app.AppCompatActivity; + import com.android.launcher3.util.StartActivityParams; -public class ProxyActivityStarter extends Activity { +public class ProxyActivityStarter extends AppCompatActivity { private static final String TAG = "ProxyActivityStarter"; diff --git a/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java b/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java index 1a820a5c143..9293a04c3a3 100644 --- a/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java +++ b/quickstep/src/com/android/quickstep/interaction/AllSetActivity.java @@ -25,7 +25,6 @@ import static com.android.quickstep.OverviewComponentObserver.startHomeIntentSafely; import android.animation.Animator; -import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.res.Configuration; @@ -58,6 +57,7 @@ import android.widget.TextView; import androidx.annotation.Nullable; +import androidx.appcompat.app.AppCompatActivity; import androidx.core.graphics.ColorUtils; import com.android.launcher3.DeviceProfile; @@ -83,7 +83,7 @@ * screen to go home * for the gestural system navigation. */ -public class AllSetActivity extends Activity { +public class AllSetActivity extends AppCompatActivity { private static final String LOG_TAG = "AllSetActivity"; private static final String URI_SYSTEM_NAVIGATION_SETTING = "#Intent;action=com.android.settings.SEARCH_RESULT_TRAMPOLINE;S.:settings:fragment_args_key=gesture_system_navigation_input_summary;S.:settings:show_fragment=com.android.settings.gestures.SystemNavigationGestureSettings;end";