|
|
@ -59,6 +59,8 @@ import org.floens.chan.utils.Utils; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
public abstract class BaseActivity extends Activity implements PanelSlideListener, PinnedManager.PinListener { |
|
|
|
public abstract class BaseActivity extends Activity implements PanelSlideListener, PinnedManager.PinListener { |
|
|
|
|
|
|
|
public static boolean doRestartOnResume = false; |
|
|
|
|
|
|
|
|
|
|
|
private final static int ACTION_OPEN_URL = 1; |
|
|
|
private final static int ACTION_OPEN_URL = 1; |
|
|
|
|
|
|
|
|
|
|
|
protected PinnedAdapter pinnedAdapter; |
|
|
|
protected PinnedAdapter pinnedAdapter; |
|
|
@ -112,6 +114,16 @@ public abstract class BaseActivity extends Activity implements PanelSlideListene |
|
|
|
ChanApplication.getPinnedManager().removePinListener(this); |
|
|
|
ChanApplication.getPinnedManager().removePinListener(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected void onResume() { |
|
|
|
|
|
|
|
super.onResume(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (doRestartOnResume) { |
|
|
|
|
|
|
|
doRestartOnResume = false; |
|
|
|
|
|
|
|
recreate(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initPane() { |
|
|
|
private void initPane() { |
|
|
|
threadPane.setPanelSlideListener(this); |
|
|
|
threadPane.setPanelSlideListener(this); |
|
|
|
threadPane.setParallaxDistance(200); |
|
|
|
threadPane.setParallaxDistance(200); |
|
|
|