mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 00:18:51 -05:00
Fix LogDisplayFragment
This commit is contained in:
parent
65c3d69d9a
commit
f50c0e1905
@ -26,13 +26,16 @@ public class ConsolidateResult extends OperationResult {
|
|||||||
super(result, log);
|
super(result, log);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Construct from a parcel - trivial because we have no extra data. */
|
||||||
* Construct from a parcel - trivial because we have no extra data.
|
|
||||||
*/
|
|
||||||
public ConsolidateResult(Parcel source) {
|
public ConsolidateResult(Parcel source) {
|
||||||
super(source);
|
super(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
super.writeToParcel(dest, flags);
|
||||||
|
}
|
||||||
|
|
||||||
public static Creator<ConsolidateResult> CREATOR = new Creator<ConsolidateResult>() {
|
public static Creator<ConsolidateResult> CREATOR = new Creator<ConsolidateResult>() {
|
||||||
public ConsolidateResult createFromParcel(final Parcel source) {
|
public ConsolidateResult createFromParcel(final Parcel source) {
|
||||||
return new ConsolidateResult(source);
|
return new ConsolidateResult(source);
|
||||||
|
@ -67,7 +67,11 @@ public class SingletonResult extends OperationResult {
|
|||||||
toast.setIndeterminate(false);
|
toast.setIndeterminate(false);
|
||||||
toast.setSwipeToDismiss(true);
|
toast.setSwipeToDismiss(true);
|
||||||
return toast;
|
return toast;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void writeToParcel(Parcel dest, int flags) {
|
||||||
|
super.writeToParcel(dest, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Creator<SingletonResult> CREATOR = new Creator<SingletonResult>() {
|
public static Creator<SingletonResult> CREATOR = new Creator<SingletonResult>() {
|
||||||
|
@ -57,11 +57,11 @@ public class LogDisplayFragment extends ListFragment implements OnTouchListener
|
|||||||
public static final String EXTRA_RESULT = "log";
|
public static final String EXTRA_RESULT = "log";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onActivityCreated(Bundle savedInstanceState) {
|
||||||
super.onActivityCreated(savedInstanceState);
|
super.onActivityCreated(savedInstanceState);
|
||||||
|
|
||||||
Intent intent = getActivity().getIntent();
|
Intent intent = getActivity().getIntent();
|
||||||
if (intent.getExtras() == null || !intent.getExtras().containsKey(EXTRA_RESULT)) {
|
if (intent == null) {
|
||||||
getActivity().finish();
|
getActivity().finish();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -90,7 +90,8 @@ public class LogDisplayFragment extends ListFragment implements OnTouchListener
|
|||||||
});
|
});
|
||||||
|
|
||||||
getListView().setFastScrollEnabled(true);
|
getListView().setFastScrollEnabled(true);
|
||||||
|
getListView().setDividerHeight(0);
|
||||||
|
getListView().setOnTouchListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void decreaseLogLevel() {
|
public void decreaseLogLevel() {
|
||||||
@ -119,13 +120,6 @@ public class LogDisplayFragment extends ListFragment implements OnTouchListener
|
|||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onActivityCreated(Bundle savedInstanceState) {
|
|
||||||
super.onActivityCreated(savedInstanceState);
|
|
||||||
getListView().setDividerHeight(0);
|
|
||||||
getListView().setOnTouchListener(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouch(View v, MotionEvent event) {
|
public boolean onTouch(View v, MotionEvent event) {
|
||||||
mDetector.onTouchEvent(event);
|
mDetector.onTouchEvent(event);
|
||||||
|
Loading…
Reference in New Issue
Block a user