package me.mattlogan.pancakes;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.ViewGroup;

import me.mattlogan.library.ViewStack;
import me.mattlogan.library.ViewStackDelegate;

public class MainActivity extends AppCompatActivity
        implements ViewStackActivity, ViewStackDelegate {

    private ViewStack viewStack;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        viewStack = ViewStack.create((ViewGroup) findViewById(R.id.container), this);

        if (savedInstanceState != null) {
            viewStack.rebuildFromBundle(savedInstanceState);
        } else {
            viewStack.push(new RedView.Factory());
        }
    }

    @Override
    public void onSaveInstanceState(Bundle outState) {
        viewStack.saveToBundle(outState);
        super.onSaveInstanceState(outState);
    }

    @Override
    public void onBackPressed() {
        viewStack.pop();
    }

    @Override
    public ViewStack viewStack() {
        return viewStack;
    }

    @Override
    public void onFinishStack() {
        finish();
    }
}

@@ -104,33 +104,8 @@
 le;%0A
-import android.util.Log;%0A
 impo
@@ -131,16 +131,16 @@
 wGroup;%0A
+
 %0Aimport 
@@ -330,16 +330,70 @@
 gate %7B%0A%0A
+    private static final String STACK_TAG = %22stack%22;%0A%0A
     priv
@@ -761,32 +761,43 @@
 vedInstanceState
+, STACK_TAG
 );%0A        %7D els
@@ -929,32 +929,32 @@
 dle outState) %7B%0A
-
         viewStac
@@ -972,24 +972,35 @@
 dle(outState
+, STACK_TAG
 );%0A        s

Update app module with bundle tag