refactor intent extras for detail activities
This commit is contained in:
parent
3c4822329e
commit
cd3ad6b577
10 changed files with 40 additions and 67 deletions
|
|
@ -23,14 +23,7 @@ public class AppShortcutLauncherActivity extends Activity {
|
|||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
int shortcutType = SHORTCUT_TYPE_DEFAULT;
|
||||
|
||||
Bundle extras = getIntent().getExtras();
|
||||
if (extras != null) {
|
||||
shortcutType = extras.getInt(EXTRA_SHORTCUT, SHORTCUT_TYPE_DEFAULT);
|
||||
}
|
||||
|
||||
switch (shortcutType) {
|
||||
switch (getIntent().getIntExtra(EXTRA_SHORTCUT, SHORTCUT_TYPE_DEFAULT)) {
|
||||
case SHORTCUT_TYPE_SHUFFLE:
|
||||
DynamicShortcutManager.reportShortcutUsed(this, ShuffleShortcutType.getId());
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue