mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Merge pull request #518 from frankdu/clean-up
Remove K9FragmentActivity
This commit is contained in:
commit
209072398e
@ -21,7 +21,6 @@ import com.fsck.k9.activity.misc.SwipeGestureDetector.OnSwipeGestureListener;
|
|||||||
*
|
*
|
||||||
* @see K9Activity
|
* @see K9Activity
|
||||||
* @see K9ListActivity
|
* @see K9ListActivity
|
||||||
* @see K9FragmentActivity
|
|
||||||
*/
|
*/
|
||||||
public class K9ActivityCommon {
|
public class K9ActivityCommon {
|
||||||
/**
|
/**
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
package com.fsck.k9.activity;
|
|
||||||
|
|
||||||
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;
|
|
||||||
|
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
@ -64,7 +64,7 @@ import de.cketti.library.changelog.ChangeLog;
|
|||||||
* shows a list of messages.
|
* shows a list of messages.
|
||||||
* From this Activity the user can perform all standard message operations.
|
* From this Activity the user can perform all standard message operations.
|
||||||
*/
|
*/
|
||||||
public class MessageList extends K9FragmentActivity implements MessageListFragmentListener,
|
public class MessageList extends K9Activity implements MessageListFragmentListener,
|
||||||
MessageViewFragmentListener, OnBackStackChangedListener, OnSwipeGestureListener,
|
MessageViewFragmentListener, OnBackStackChangedListener, OnSwipeGestureListener,
|
||||||
OnSwitchCompleteListener {
|
OnSwitchCompleteListener {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user