android: Move settings to compose and material UI 3

This changes lets us use the latest UI design from Google, Material 3.

Google only provides the material UI 3 themes for compose, compose only works with kotlin.
This commit is contained in:
Colin Edwards
2023-12-22 22:52:33 -06:00
parent 625ab6decd
commit ddc048e2c3
13 changed files with 410 additions and 340 deletions

View File

@@ -25,6 +25,8 @@ import android.widget.RemoteViews;
import androidx.core.app.ServiceCompat;
import org.musicpd.ui.SettingsActivity;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
@@ -197,7 +199,7 @@ public class Main extends Service implements Runnable {
}
}, filter);
final Intent mainIntent = new Intent(this, Settings.class);
final Intent mainIntent = new Intent(this, SettingsActivity.class);
mainIntent.setAction("android.intent.action.MAIN");
mainIntent.addCategory("android.intent.category.LAUNCHER");
final PendingIntent contentIntent = PendingIntent.getActivity(this, 0,