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

Commit 2388a7ba authored by satok's avatar satok
Browse files

Add getServiceInfo to SpellCheckerInfo

Change-Id: I11634b88cf65182465869b131cfdcc8815e74965
parent c7145319
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24494,6 +24494,7 @@ package android.view.textservice {
    method public android.content.ComponentName getComponent();
    method public java.lang.String getId();
    method public java.lang.String getPackageName();
    method public android.content.pm.ServiceInfo getServiceInfo();
    method public java.lang.String getSettingsActivity();
    method public android.view.textservice.SpellCheckerSubtype getSubtypeAt(int);
    method public int getSubtypeCount();
+9 −2
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ import android.content.Context;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.pm.ServiceInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
@@ -71,7 +70,6 @@ public final class SpellCheckerInfo implements Parcelable {
        final PackageManager pm = context.getPackageManager();
        int label = 0;
        String settingsActivityComponent = null;
        int isDefaultResId = 0;

        XmlResourceParser parser = null;
        try {
@@ -221,6 +219,15 @@ public final class SpellCheckerInfo implements Parcelable {
        return mService.loadIcon(pm);
    }


    /**
     * Return the raw information about the Service implementing this
     * spell checker.  Do not modify the returned object.
     */
    public ServiceInfo getServiceInfo() {
        return mService.serviceInfo;
    }

    /**
     * Return the class name of an activity that provides a settings UI.
     * You can launch this activity be starting it with