[Android] Simplify display metrics retrieval in Config.java.