@@ -0,0 +1,981 @@
+package com.maxiee.heartbeat.ui.common;%0A%0Aimport android.os.Build;%0Aimport android.os.Bundle;%0Aimport android.support.v7.app.AppCompatActivity;%0A%0Aimport com.maxiee.heartbeat.R;%0Aimport com.maxiee.heartbeat.common.ThemeUtils;%0A%0A/**%0A * Created by maxiee on 15/10/22.%0A */%0Apublic class BaseActivity extends AppCompatActivity%7B%0A    private int mCurrentTheme;%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        mCurrentTheme = ThemeUtils.getCurrentActivityTheme(this);%0A        setTheme(mCurrentTheme);%0A        if(android.os.Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.LOLLIPOP)%7B%0A            getWindow().setStatusBarColor(ThemeUtils.getAttributeColor(this, R.attr.colorPrimaryDark));%0A        %7D%0A    %7D%0A%0A    @Override%0A    protected void onResume() %7B%0A        super.onResume();%0A        int newTheme = ThemeUtils.getCurrentActivityTheme(this);%0A        if (mCurrentTheme != newTheme) %7B%0A            recreate();%0A        %7D%0A    %7D%0A%7D%0A

set and update Theme.