2012-09-26 12:03:14 -04:00
|
|
|
package com.fsck.k9.activity;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.view.MotionEvent;
|
|
|
|
|
|
|
|
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
2012-09-27 00:12:01 -04:00
|
|
|
import com.fsck.k9.activity.K9ActivityCommon.K9ActivityMagic;
|
|
|
|
import com.fsck.k9.activity.misc.SwipeGestureDetector.OnSwipeGestureListener;
|
2012-09-26 12:03:14 -04:00
|
|
|
|
|
|
|
|
2012-09-27 00:12:01 -04:00
|
|
|
public class K9FragmentActivity extends SherlockFragmentActivity implements K9ActivityMagic {
|
2012-09-26 12:03:14 -04:00
|
|
|
|
2012-09-27 00:12:01 -04:00
|
|
|
private K9ActivityCommon mBase;
|
2012-09-26 12:03:14 -04:00
|
|
|
|
|
|
|
|
|
|
|
@Override
|
2012-09-27 00:12:01 -04:00
|
|
|
public void onCreate(Bundle savedInstanceState) {
|
|
|
|
mBase = K9ActivityCommon.newInstance(this);
|
|
|
|
super.onCreate(savedInstanceState);
|
2012-09-26 12:03:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2012-09-27 00:12:01 -04:00
|
|
|
public boolean dispatchTouchEvent(MotionEvent event) {
|
|
|
|
mBase.preDispatchTouchEvent(event);
|
|
|
|
return super.dispatchTouchEvent(event);
|
2012-09-26 12:03:14 -04:00
|
|
|
}
|
|
|
|
|
2012-09-27 00:12:01 -04:00
|
|
|
@Override
|
|
|
|
public void setupGestureDetector(OnSwipeGestureListener listener) {
|
|
|
|
mBase.setupGestureDetector(listener);
|
|
|
|
}
|
2012-09-26 12:03:14 -04:00
|
|
|
}
|