Этот коммит содержится в:
Anton Tananaev
2017-08-31 14:16:04 +12:00
родитель 7c49bb78f3
Коммит 4d8d15d615
4 изменённых файлов: 70 добавлений и 9 удалений
+1 -1
Просмотреть файл
@@ -87,7 +87,7 @@ public class ShortcutActivity extends AppCompatActivity {
}
private void setShortcutResult(String label, @DrawableRes int iconResId, String action) {
Intent intent = new Intent(Intent.ACTION_MAIN, null, this, ShortcutActivity.class);
Intent intent = new Intent(Intent.ACTION_DEFAULT, null, this, ShortcutActivity.class);
intent.putExtra(EXTRA_ACTION, action);
ShortcutInfoCompat shortcut = new ShortcutInfoCompat.Builder(this, action)