package com.jamesdube.laravelnewsapp.util;

import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.preference.PreferenceManager;
import android.util.Log;

import com.jamesdube.laravelnewsapp.App;
import com.jamesdube.laravelnewsapp.R;

/**
 * Created by rick on 1/8/17.
 */

public class Themes {

    public static void applyTheme(Activity activity){
        String theme = PreferenceManager.getDefaultSharedPreferences(activity.getApplicationContext())
                .getString("pref_theme", "light");
        switch (theme){
            case "light":{
                activity.setTheme(R.style.AppTheme_NoActionBar);
                break;
            }
            case "dark":{
                activity.setTheme(R.style.AppTheme_Dark_NoActionBar);
                break;
            }
            case "laravel":{
                activity.setTheme(R.style.AppTheme_Laravel_NoActionBar);
                break;
            }
            default:{
                activity.setTheme(R.style.AppTheme_NoActionBar);
                break;
            }
        }
    }
}

@@ -821,147 +821,8 @@
   %7D%0A
-            case %22laravel%22:%7B%0A                activity.setTheme(R.style.AppTheme_Laravel_NoActionBar);%0A                break;%0A            %7D%0A
     

remove laravel theme