|
@ -6,6 +6,9 @@ public class SimpleActivityStack extends SimpleStack<SimpleActivity> { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public int push(SimpleActivity activity) { |
|
|
public int push(SimpleActivity activity) { |
|
|
|
|
|
if (activity == null) { |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
if (size() > 0) { |
|
|
if (size() > 0) { |
|
|
super.get(size() - 1).passivate(); |
|
|
super.get(size() - 1).passivate(); |
|
|
} |
|
|
} |
|
|