Fix android build: fix condition

Change-Id: I5e20375791f038b38ef079712204a1afed07c39c