bug:
5796182
This change will be followed up by a change to the class
android.content.Intent.
Change-Id: I3c607c535a4e90d867a98528118d1b6f10fa45cf
albumPath.toString());
}
data.putString(PhotoPage.KEY_MEDIA_ITEM_PATH, itemPath.toString());
+
+ // Displays the filename as title, which is passed through intent from other apps.
+ // If other apps don't set this value, just display empty string.
+ // TODO: modify the javadoc of android.content.Intent.EXTRA_TITLE to include this
+ // usage
+ final String title = intent.getStringExtra(Intent.EXTRA_TITLE);
+ setTitle((title != null) ? title : "");
+
getStateManager().startState(PhotoPage.class, data);
}
}