Fix ConsolidateResult, needed parcelable methods

This commit is contained in:
Dominik Schürmann 2014-09-21 22:31:28 +02:00
parent 1dd68c7120
commit 65c3d69d9a
2 changed files with 21 additions and 2 deletions

View File

@ -18,10 +18,29 @@
package org.sufficientlysecure.keychain.service.results; package org.sufficientlysecure.keychain.service.results;
import android.os.Parcel;
public class ConsolidateResult extends OperationResult { public class ConsolidateResult extends OperationResult {
public ConsolidateResult(int result, OperationLog log) { public ConsolidateResult(int result, OperationLog log) {
super(result, log); super(result, log);
} }
/**
* Construct from a parcel - trivial because we have no extra data.
*/
public ConsolidateResult(Parcel source) {
super(source);
}
public static Creator<ConsolidateResult> CREATOR = new Creator<ConsolidateResult>() {
public ConsolidateResult createFromParcel(final Parcel source) {
return new ConsolidateResult(source);
}
public ConsolidateResult[] newArray(final int size) {
return new ConsolidateResult[size];
}
};
} }

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent" android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<fragment <fragment