Loading policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +4 −12 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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) { Loading Loading
policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +4 −12 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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) { Loading