Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 895098da authored by Joanne Chung's avatar Joanne Chung
Browse files

Change path for DefaultSelectionToolbarRenderService

We met the ClassNotFoundException when putting the service under
system service folder. Cannot find the root cause to fix it now. We
need to more time to find the reason so the workaround is to move the
class to the framework/base/core/service/selectiontoolbar to fix the
problem now. We will go back to fix the problem later.

Bug: 214122495
Test: manual. Can bind to DefaultSelectionToolbarRenderService and
the methods can be called successfully.

Change-Id: I9218c9ceee25a105fe592c0c63905ba2e2f8a305
parent 2cebd2b9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -14,15 +14,17 @@
 * limitations under the License.
 */

package com.android.server.selectiontoolbar;
package android.service.selectiontoolbar;

import android.service.selectiontoolbar.SelectionToolbarRenderService;
import android.util.Log;
import android.view.selectiontoolbar.ShowInfo;

/**
 * The default implementation of {@link SelectionToolbarRenderService}.
 *
 *  @hide
 */
// TODO(b/214122495): fix class not found then move to system service folder
public final class DefaultSelectionToolbarRenderService extends SelectionToolbarRenderService {

    private static final String TAG = "DefaultSelectionToolbarRenderService";
+1 −1
Original line number Diff line number Diff line
@@ -6622,7 +6622,7 @@
        </service>

        <!-- TODO: Move to ExtServices or relevant component. -->
        <service android:name="com.android.server.selectiontoolbar.DefaultSelectionToolbarRenderService"
        <service android:name="android.service.selectiontoolbar.DefaultSelectionToolbarRenderService"
                 android:permission="android.permission.BIND_SELECTION_TOOLBAR_RENDER_SERVICE"
                 android:process=":ui"
                 android:exported="false">
+3 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.server.selectiontoolbar;

import android.service.selectiontoolbar.DefaultSelectionToolbarRenderService;

import com.android.server.infra.ServiceNameResolver;

import java.io.PrintWriter;
@@ -24,7 +26,7 @@ final class SelectionToolbarServiceNameResolver implements ServiceNameResolver {

    // TODO: move to SysUi or ExtServices
    private static final String SELECTION_TOOLBAR_SERVICE_NAME =
            "android/com.android.server.selectiontoolbar.DefaultSelectionToolbarRenderService";
            "android/" + DefaultSelectionToolbarRenderService.class.getName();

    @Override
    public String getDefaultServiceName(int userId) {