package com.example.daydreamclock

import android.content.Intent
import android.os.Bundle
import android.provider.Settings
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        // Simple UI to guide user to settings
        val button = Button(this).apply {
            text = "Open Screen Saver Settings"
            setOnClickListener {
                startActivity(Intent(Settings.ACTION_DREAM_SETTINGS))
            }
        }
        setContentView(button)
    }
}
