Skip to content

Instantly share code, notes, and snippets.

View MayCXC's full-sized avatar
💭
:suspect:

Aaron Paterson MayCXC

💭
:suspect:
View GitHub Profile
@Steppschuh
Steppschuh / BundleUtil.java
Created April 16, 2018 12:33
Convenience methods to convert Android Bundle to PersistableBundle and back
import android.os.BaseBundle;
import android.os.Bundle;
import android.os.PersistableBundle;
public final class BundleUtil {
/**
* Creates a new {@link Bundle} based on the specified {@link PersistableBundle}.
*/
public static Bundle toBundle(PersistableBundle persistableBundle) {