Files
assistant-android/app/src/main/java/com/gh/gamecenter/LoginActivity.java

39 lines
1.1 KiB
Java

package com.gh.gamecenter;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import com.gh.common.util.DisplayUtils;
import com.gh.common.util.EntranceUtils;
import com.gh.gamecenter.fragment.LoginFragment;
/**
* Created by khy on 14/08/17.
*/
public class LoginActivity extends NormalActivity {
@Override
protected Intent provideNormalIntent() {
return getTargetIntent(this, LoginActivity.class, LoginFragment.class);
}
@NonNull
public static Intent getIntent(Context context, String entrance) {
Bundle bundle = new Bundle();
bundle.putString(EntranceUtils.KEY_ENTRANCE, entrance);
return getTargetIntent(context, LoginActivity.class, LoginFragment.class, bundle);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
hideToolbar(true);
DisplayUtils.setLightStatusBar(this, true);
DisplayUtils.setStatusBarColor(this, R.color.transparent, true);
}
}