private void createStackAndPushStartActivity ( ) { activityStack = new Stack < WeakReference < Activity > > ( ) ; if ( activity != null && config . trackActivities ) { WeakReference < Activity > weakReference = new WeakReference < Activity > ( activity ) ; activity = null ; activityStack . push ( weakReference ) ; } }
Creates a new activity stack and pushes the start activity .