1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-17 06:55:03 -05:00
k-9/src/com/fsck/k9/activity/K9FragmentActivity.java

33 lines
862 B
Java
Raw Normal View History

package com.fsck.k9.activity;
2014-06-21 10:54:09 -04:00
import android.app.Activity;
import android.os.Bundle;
import android.view.MotionEvent;
import com.fsck.k9.activity.K9ActivityCommon.K9ActivityMagic;
import com.fsck.k9.activity.misc.SwipeGestureDetector.OnSwipeGestureListener;
2014-06-21 10:54:09 -04:00
public class K9FragmentActivity extends Activity implements K9ActivityMagic {
private K9ActivityCommon mBase;
@Override
public void onCreate(Bundle savedInstanceState) {
mBase = K9ActivityCommon.newInstance(this);
super.onCreate(savedInstanceState);
}
@Override
public boolean dispatchTouchEvent(MotionEvent event) {
mBase.preDispatchTouchEvent(event);
return super.dispatchTouchEvent(event);
}
@Override
public void setupGestureDetector(OnSwipeGestureListener listener) {
mBase.setupGestureDetector(listener);
}
}