From 0e574bc17b1dc51bd01ebe296914da16c58c32a7 Mon Sep 17 00:00:00 2001 From: Adrian Ulrich Date: Thu, 23 Oct 2014 20:11:46 +0200 Subject: [PATCH] Change NewPlaylistDialog to work with PlaylistTasks instead of Intents --- .../android/vanilla/NewPlaylistDialog.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ch/blinkenlights/android/vanilla/NewPlaylistDialog.java b/src/ch/blinkenlights/android/vanilla/NewPlaylistDialog.java index e1329465..8d4c8340 100644 --- a/src/ch/blinkenlights/android/vanilla/NewPlaylistDialog.java +++ b/src/ch/blinkenlights/android/vanilla/NewPlaylistDialog.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2010 Christopher Eby + * Copyright (C) 2014 Adrian Ulrich * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -64,9 +65,9 @@ public class NewPlaylistDialog extends Dialog implements TextWatcher, View.OnCli */ private final int mActionRes; /** - * An intent that is simply stored in the dialog. + * A playlist task that is simply stored in the dialog. */ - private final Intent mIntent; + private final PlaylistTask mPlaylistTask; /** * Create a NewPlaylistDialog. @@ -78,12 +79,12 @@ public class NewPlaylistDialog extends Dialog implements TextWatcher, View.OnCli * action (e.g. "Create"). * @param intent An optional intent to store with the dialog. */ - public NewPlaylistDialog(Context context, String initialText, int actionText, Intent intent) + public NewPlaylistDialog(Context context, String initialText, int actionText, PlaylistTask playlistTask) { super(context); mInitialText = initialText; mActionRes = actionText; - mIntent = intent; + mPlaylistTask = playlistTask; } @Override @@ -118,11 +119,11 @@ public class NewPlaylistDialog extends Dialog implements TextWatcher, View.OnCli } /** - * Returns the stored intent. + * Returns the stored playlist task. */ - public Intent getIntent() + public PlaylistTask getPlaylistTask() { - return mIntent; + return mPlaylistTask; } public void afterTextChanged(Editable s)