[SharedActivity.java]Fixed a bug