package com.funnyhatsoftware.spacedock.activity;

import android.content.Context;
import android.content.Intent;
import android.support.v4.app.Fragment;

import com.funnyhatsoftware.spacedock.fragment.DetailsFragment;

public class DetailsActivity extends SinglePaneActivity {
    private static final String EXTRA_TYPE = "browsetype";
    private static final String EXTRA_ITEM = "displayitem";

    public static Intent getIntent(Context context, String itemType, String itemId) {
        if (itemType == null || itemId == null) {
            throw new IllegalArgumentException();
        }

        Intent intent = new Intent(context, DetailsActivity.class);
        intent.putExtra(EXTRA_TYPE, itemType);
        intent.putExtra(EXTRA_ITEM, itemId);
        return intent;
    }

    public Fragment getFragment() {
        String itemType = getIntent().getStringExtra(EXTRA_TYPE);
        String itemId = getIntent().getStringExtra(EXTRA_ITEM);
        return DetailsFragment.newInstance(itemType, itemId);
    }
}

@@ -210,16 +210,78 @@
 ragment;
+%0Aimport com.funnyhatsoftware.spacedock.holder.ExpansionHolder;
 %0A%0Apublic
@@ -645,24 +645,167 @@
 %0A        %7D%0A%0A
+        if (itemType.equals(ExpansionHolder.TYPE_STRING)) %7B%0A            return ExpansionDetailsActivity.getIntent(context, itemId);%0A        %7D%0A%0A
         Inte

Fix expansion detail display on phones