package com.averi.worldscribe.activities;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;

import com.averi.worldscribe.R;

public class SettingsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_settings);

        setAppBar();
    }

    /**
     * Setup this Activity's app bar.
     */
    private void setAppBar() {
        Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar);
        assert myToolbar != null;
        myToolbar.setTitle(R.string.settingsTitle);
        setSupportActionBar(myToolbar);
    }

}

@@ -152,16 +152,47 @@
 Toolbar;
+%0Aimport android.widget.Spinner;
 %0A%0Aimport
@@ -216,16 +216,76 @@
 cribe.R;
+%0Aimport com.averi.worldscribe.adapters.AppThemeArrayAdapter;
 %0A%0Apublic
@@ -337,16 +337,54 @@
 vity %7B%0A%0A
+    private Spinner appThemeSpinner;%0A%0A
     @Ove
@@ -551,24 +551,130 @@
         
-setAppBa
+appThemeSpinner = (Spinner) findViewById(R.id.themeSelector);%0A%0A        setAppBar();%0A        populateAppThemeSpinne
 r();%0A   
@@ -964,10 +964,420 @@
 %0A    %7D%0A%0A
+    /**%0A     * Populate the App Theme spinner with all available app themes.%0A     */%0A    private void populateAppThemeSpinner() %7B%0A        Integer allThemes%5B%5D = %7BR.style.AppTheme, R.style.SunsetOrange, R.style.EnchantedGreen,%0A            R.style.UbePurple, R.style.LovelyRed%7D;%0A        AppThemeArrayAdapter adapter = new AppThemeArrayAdapter(this, allThemes);%0A        appThemeSpinner.setAdapter(adapter);%0A    %7D%0A%0A
 %7D%0A

Set adapter for select app theme spinner