summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/print
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-02-13 15:23:19 -0500
committerJason Monk <jmonk@google.com>2015-03-25 11:11:36 -0400
commit2ebc8a01696c4e7dd29863b92a15ae0bbbbb254d (patch)
tree8ec8d8ad8b530d01d9aff027abbc992235562ee0 /src/com/android/settings/print
parent5528d8952b0931593e645e1608bf3fe7f46b5ba8 (diff)
downloadpackages_apps_Settings-2ebc8a01696c4e7dd29863b92a15ae0bbbbb254d.zip
packages_apps_Settings-2ebc8a01696c4e7dd29863b92a15ae0bbbbb254d.tar.gz
packages_apps_Settings-2ebc8a01696c4e7dd29863b92a15ae0bbbbb254d.tar.bz2
Allow system apps to add to settings dashboard
Allow system apps to add a tile to the top level of settings that links to an activity through adding a filter for a specific action. Determine the info for the tile based off manifest info for the activity. Also allow the same for managed profiles, but show a dialog in between to select which profile. The category in which the item is to be placed must be in meta-data. The icon and title can be specified through meta-data as well or if unspecified the activity's label and icon will be used. Also added an optional <external-tiles> tag to the dashboard category xml, this allows Settings to put external tiles in the middle of some categories (Personal does this). Bug: 19443117 Change-Id: Idc9938d1549d181103a3030a8784b527215a8399
Diffstat (limited to 'src/com/android/settings/print')
-rw-r--r--src/com/android/settings/print/PrintSettingsFragment.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/com/android/settings/print/PrintSettingsFragment.java b/src/com/android/settings/print/PrintSettingsFragment.java
index 3e989e4..7317d79 100644
--- a/src/com/android/settings/print/PrintSettingsFragment.java
+++ b/src/com/android/settings/print/PrintSettingsFragment.java
@@ -52,13 +52,15 @@ import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
+import android.widget.AdapterView.OnItemSelectedListener;
+import android.widget.Spinner;
import android.widget.TextView;
import com.android.internal.content.PackageMonitor;
-import com.android.settings.UserSpinnerAdapter;
import com.android.settings.DialogCreatable;
import com.android.settings.R;
import com.android.settings.SettingsPreferenceFragment;
+import com.android.settings.UserAdapter;
import com.android.settings.Utils;
import com.android.settings.search.BaseSearchIndexProvider;
import com.android.settings.search.Indexable;
@@ -68,9 +70,6 @@ import java.text.DateFormat;
import java.util.ArrayList;
import java.util.List;
-import android.widget.AdapterView.OnItemSelectedListener;
-import android.widget.Spinner;
-
/**
* Fragment with the top level print settings.
*/
@@ -120,7 +119,7 @@ public class PrintSettingsFragment extends SettingsPreferenceFragment
private PreferenceCategory mPrintServicesCategory;
private PrintJobsController mPrintJobsController;
- private UserSpinnerAdapter mProfileSpinnerAdapter;
+ private UserAdapter mProfileSpinnerAdapter;
private Spinner mSpinner;
@Override