am 2388a7ba: Add getServiceInfo to SpellCheckerInfo

* commit '2388a7ba6218f44400ee78016282cb96c02dfc54':
  Add getServiceInfo to SpellCheckerInfo
This commit is contained in:
satok
2011-08-25 22:58:34 -07:00
committed by Android Git Automerger
2 changed files with 10 additions and 2 deletions

View File

@@ -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();

View File

@@ -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