diff options
| author | 2012-11-06 12:44:18 -0800 | |
|---|---|---|
| committer | 2012-11-06 12:44:18 -0800 | |
| commit | 3eaa876cf317d064de1a32f1d34fd83b6e960e0b (patch) | |
| tree | e0eaca67e9bb37a6ad006c6c4fb9a36e79559c7e | |
| parent | be2ca79abf2b1e5eb257560aa99ab48059e48cc8 (diff) | |
| parent | 08924d007f2323b6fb57c858732d32b1083da639 (diff) | |
am 08924d00: Merge "Supporting EXTRA_APPWIDGET_OPTIONS correctly" into jb-mr1-lockscreen-dev
* commit '08924d007f2323b6fb57c858732d32b1083da639':
Supporting EXTRA_APPWIDGET_OPTIONS correctly
| -rw-r--r-- | policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java index f165b6177769..11e600ea2fe8 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java @@ -924,7 +924,10 @@ public class KeyguardHostView extends KeyguardViewBase { pickIntent.putExtra(AppWidgetManager.EXTRA_CATEGORY_FILTER, AppWidgetProviderInfo.WIDGET_CATEGORY_KEYGUARD); - pickIntent.putExtra(Intent.EXTRA_INTENT, getBaseIntent()); + Bundle options = new Bundle(); + options.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY, + AppWidgetProviderInfo.WIDGET_CATEGORY_KEYGUARD); + pickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_OPTIONS, options); pickIntent.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP @@ -937,17 +940,6 @@ public class KeyguardHostView extends KeyguardViewBase { } } - private Intent getBaseIntent() { - Intent baseIntent = new Intent(Intent.ACTION_MAIN, null); - baseIntent.addCategory(Intent.CATEGORY_DEFAULT); - - Bundle options = new Bundle(); - options.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY, - AppWidgetProviderInfo.WIDGET_CATEGORY_KEYGUARD); - baseIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_OPTIONS, options); - return baseIntent; - } - private void removeTransportFromWidgetPager() { int page = getWidgetPosition(R.id.keyguard_transport_control); if (page != -1) { |