|
|
@@ -11,6 +11,7 @@ import android.support.annotation.IntDef;
|
|
|
import android.support.v7.app.AppCompatActivity;
|
|
|
import android.support.v7.app.AppCompatDelegate;
|
|
|
import android.util.Log;
|
|
|
+import android.view.View;
|
|
|
|
|
|
import com.bumptech.glide.Glide;
|
|
|
|
|
|
@@ -66,6 +67,7 @@ public abstract class ActivityBase extends AppCompatActivity implements IHelperP
|
|
|
public @interface SlideType {}
|
|
|
|
|
|
protected int slideType;
|
|
|
+ protected View rootView;
|
|
|
|
|
|
/***********************************
|
|
|
* Activity
|
|
|
@@ -135,6 +137,8 @@ public abstract class ActivityBase extends AppCompatActivity implements IHelperP
|
|
|
/*
|
|
|
first screen
|
|
|
*/
|
|
|
+ rootView = findViewById(android.R.id.content);
|
|
|
+ rootView.setVisibility(View.GONE);
|
|
|
renderScreen();
|
|
|
}
|
|
|
|
|
|
@@ -320,6 +324,8 @@ public abstract class ActivityBase extends AppCompatActivity implements IHelperP
|
|
|
}
|
|
|
|
|
|
protected final void launchScreen(@ScreenID.ID int screenId) {
|
|
|
+ rootView.setVisibility(View.VISIBLE);
|
|
|
+
|
|
|
ScreenChangerHelper helper = getHelper(ScreenChangerHelper.class);
|
|
|
|
|
|
FragmentFactory factory = new BasicFragmentFactory();
|