use of com.mob.tools.FakeActivity in project nmid-headline by miao1007.
the class PlatformListFakeActivity method showEditPage.
protected void showEditPage(Context context, List<Platform> platforms) {
EditPageFakeActivity editPageFakeActivity;
String editPageClass = ((Object) this).getClass().getPackage().getName() + ".EditPage";
try {
editPageFakeActivity = (EditPageFakeActivity) Class.forName(editPageClass).newInstance();
} catch (Exception e) {
e.printStackTrace();
return;
}
editPageFakeActivity.setBackgroundView(backgroundView);
editPageFakeActivity.setShareData(shareParamsMap);
editPageFakeActivity.setPlatforms(platforms);
if (dialogMode) {
editPageFakeActivity.setDialogMode();
}
editPageFakeActivity.showForResult(context, null, new FakeActivity() {
public void onResult(HashMap<String, Object> data) {
if (data == null)
return;
if (data.containsKey("editRes")) {
@SuppressWarnings("unchecked") HashMap<Platform, HashMap<String, Object>> editRes = (HashMap<Platform, HashMap<String, Object>>) data.get("editRes");
themeShareCallback.doShare(editRes);
}
}
});
}
Aggregations