Removed unnecessary error message
This commit is contained in:
parent
e07b5afb0a
commit
2eca79cd56
2 changed files with 0 additions and 14 deletions
|
|
@ -3,9 +3,7 @@ package com.kabouzeid.gramophone.appshortcuts;
|
|||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.kabouzeid.gramophone.R;
|
||||
import com.kabouzeid.gramophone.appshortcuts.shortcuttype.LastAddedShortcutType;
|
||||
import com.kabouzeid.gramophone.appshortcuts.shortcuttype.ShuffleAllShortcutType;
|
||||
import com.kabouzeid.gramophone.appshortcuts.shortcuttype.TopTracksShortcutType;
|
||||
|
|
@ -59,12 +57,6 @@ public class AppShortcutLauncherActivity extends Activity {
|
|||
LastAddedLoader.getLastAddedSongs(getApplicationContext()));
|
||||
DynamicShortcutManager.reportShortcutUsed(this, LastAddedShortcutType.getId());
|
||||
break;
|
||||
case NONE:
|
||||
shortcutError();
|
||||
break;
|
||||
default:
|
||||
shortcutError();
|
||||
break;
|
||||
}
|
||||
|
||||
finish();
|
||||
|
|
@ -97,10 +89,6 @@ public class AppShortcutLauncherActivity extends Activity {
|
|||
startActivity(intent);
|
||||
}
|
||||
|
||||
private void shortcutError() {
|
||||
Toast.makeText(getApplicationContext(), R.string.error_launching_shortcut, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
|
||||
private enum PlayMode {NORMAL, SHUFFLE}
|
||||
|
||||
public enum ShortcutType {
|
||||
|
|
|
|||
|
|
@ -288,6 +288,4 @@
|
|||
|
||||
<string name="app_shortcut_last_added_long">@string/last_added</string>
|
||||
<string name="app_shortcut_last_added_short">@string/last_added</string>
|
||||
|
||||
<string name="error_launching_shortcut">Error launching shortcut.</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue