修改礼包倒数领取规则

This commit is contained in:
kehaoyuan
2017-05-09 18:24:45 +08:00
parent a88c920ef0
commit ccca070dd2
10 changed files with 62 additions and 16 deletions

View File

@ -5,6 +5,7 @@ import android.app.ActionBar.LayoutParams;
import android.content.*;
import android.content.SharedPreferences.Editor;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.PagerAdapter;
@ -21,6 +22,8 @@ import com.gh.gamecenter.manager.DataCollectionManager;
import com.gh.gamecenter.manager.FilterManager;
import com.gh.gamecenter.retrofit.JSONObjectResponse;
import com.gh.gamecenter.retrofit.RetrofitManager;
import com.readystatesoftware.systembartint.SystemBarTintManager;
import de.greenrobot.event.EventBus;
import org.json.JSONException;
import org.json.JSONObject;
@ -102,8 +105,11 @@ public class SplashScreenActivity extends BaseActivity {
if (isNewFirstLaunch) {
ViewPager guideLayout = (ViewPager) findViewById(R.id.splash_intro_vp_guide);
guideLayout.setAdapter(new GuidePagerAdapter());
} else {
getTintManager().setStatusBarTintColor(ContextCompat.getColor(getApplicationContext(), R.color.theme));
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT){
SystemBarTintManager tintManager = getTintManager();
if (tintManager != null) {
tintManager.setStatusBarTintColor(ContextCompat.getColor(getApplicationContext(), R.color.theme));
}
}
}