mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Allow Taskbar stashing for external tests
Moved Taskbar stashing enabling logic to QuickstepTestInformationHandler to allow external tests to use the Taskbar API Test: TaplTestsTaskbar Bug: 240129939 Change-Id: I0ede8e4767cbe068328997a3afd51f9d5df2799a
This commit is contained in:
@@ -21,10 +21,14 @@ import android.content.ContentValues;
|
||||
import android.database.Cursor;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.launcher3.Utilities;
|
||||
|
||||
public class TestInformationProvider extends ContentProvider {
|
||||
|
||||
private static final String TAG = "TestInformationProvider";
|
||||
|
||||
@Override
|
||||
public boolean onCreate() {
|
||||
return true;
|
||||
@@ -60,7 +64,13 @@ public class TestInformationProvider extends ContentProvider {
|
||||
if (Utilities.IS_RUNNING_IN_TEST_HARNESS) {
|
||||
TestInformationHandler handler = TestInformationHandler.newInstance(getContext());
|
||||
handler.init(getContext());
|
||||
return handler.call(method, arg, extras);
|
||||
|
||||
Bundle response = handler.call(method, arg, extras);
|
||||
if (response == null) {
|
||||
Log.e(TAG, "Couldn't handle method: " + method + "; current handler="
|
||||
+ handler.getClass().getSimpleName());
|
||||
}
|
||||
return response;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user