diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e0b1e821..6f166beb 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -127,16 +127,16 @@ + android:label="@string/app_widget_classic_name"> + android:resource="@xml/app_widget_classic_info" /> playingQueue = new ArrayList<>(); @@ -936,7 +936,7 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP private void sendChangeInternal(final String what) { sendBroadcast(new Intent(what)); - appWidgetSmall.notifyChange(this, what); + appWidgetClassic.notifyChange(this, what); } private void handleChangeInternal(@NonNull final String what) { @@ -1158,9 +1158,9 @@ public class MusicService extends Service implements SharedPreferences.OnSharedP public void onReceive(final Context context, final Intent intent) { final String command = intent.getStringExtra(EXTRA_APP_WIDGET_NAME); - if (AppWidgetSmall.NAME.equals(command)) { + if (AppWidgetClassic.NAME.equals(command)) { final int[] small = intent.getIntArrayExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS); - appWidgetSmall.performUpdate(MusicService.this, small); + appWidgetClassic.performUpdate(MusicService.this, small); } } }; diff --git a/app/src/main/res/layout/app_widget_small.xml b/app/src/main/res/layout/app_widget_classic.xml similarity index 94% rename from app/src/main/res/layout/app_widget_small.xml rename to app/src/main/res/layout/app_widget_classic.xml index 6b5bdaca..dc127271 100644 --- a/app/src/main/res/layout/app_widget_small.xml +++ b/app/src/main/res/layout/app_widget_classic.xml @@ -2,15 +2,15 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" - android:layout_height="@dimen/app_widget_small_image_size" + android:layout_height="@dimen/app_widget_classic_height" android:background="#AAFFFFFF" android:orientation="horizontal" tools:ignore="ContentDescription"> @@ -19,12 +19,12 @@ android:layout_height="match_parent"> 56dp - 96dp - 250dp - 40dp + 96dp + 96dp + 250dp + 40dp diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 20048c40..08c2e3d7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -245,5 +245,5 @@ Could not scan %d files. Listing files %s is the new start directory. - small + Phonograph - Classic diff --git a/app/src/main/res/xml/app_widget_small_info.xml b/app/src/main/res/xml/app_widget_classic_info.xml similarity index 58% rename from app/src/main/res/xml/app_widget_small_info.xml rename to app/src/main/res/xml/app_widget_classic_info.xml index 98dacbab..78de70a2 100644 --- a/app/src/main/res/xml/app_widget_small_info.xml +++ b/app/src/main/res/xml/app_widget_classic_info.xml @@ -1,12 +1,12 @@ - \ No newline at end of file + \ No newline at end of file