Journalist Richard Medhurst had his mobile phone seized. Did using a secure phone protect his data?

How can journalists protect confidential data and sources on their phones when crossing borders?