mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-13 13:05:03 -05:00
38 lines
1020 B
Java
38 lines
1020 B
Java
package com.fsck.k9.activity;
|
|
|
|
import android.os.Bundle;
|
|
import android.view.MotionEvent;
|
|
|
|
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
|
import com.fsck.k9.activity.K9ActivityCommon.K9ActivityMagic;
|
|
import com.fsck.k9.activity.misc.SwipeGestureDetector.OnSwipeGestureListener;
|
|
|
|
|
|
public class K9FragmentActivity extends SherlockFragmentActivity 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 int getThemeBackgroundColor() {
|
|
return mBase.getThemeBackgroundColor();
|
|
}
|
|
|
|
@Override
|
|
public void setupGestureDetector(OnSwipeGestureListener listener) {
|
|
mBase.setupGestureDetector(listener);
|
|
}
|
|
}
|