Convert static app shortcuts to dynamic

Will allow user customization in the future (colors, choosing which show up in list, etc.)
This commit is contained in:
Adrian Campos 2017-03-09 10:45:44 -08:00 committed by Karim Abou Zeid
commit 43a2f319fc
10 changed files with 216 additions and 93 deletions

View file

@ -28,6 +28,7 @@ import com.kabouzeid.appthemehelper.ThemeStore;
import com.kabouzeid.appthemehelper.util.ATHUtil;
import com.kabouzeid.appthemehelper.util.NavigationViewUtil;
import com.kabouzeid.gramophone.R;
import com.kabouzeid.gramophone.appshortcuts.DynamicShortcutManager;
import com.kabouzeid.gramophone.dialogs.ChangelogDialog;
import com.kabouzeid.gramophone.dialogs.DonationsDialog;
import com.kabouzeid.gramophone.glide.SongGlideRequest;
@ -112,6 +113,9 @@ public class MainActivity extends AbsSlidingMusicPanelActivity {
if (!checkShowIntro()) {
checkShowChangelog();
}
//Set up dynamic shortcuts if needed
new DynamicShortcutManager(getApplicationContext()).initDynamicShortcuts();
}
private void setMusicChooser(int key) {