China says it has been in touch with Australia about detained writer