Fix IllegalStateException in ViewKeyShareFragment