Nexus4AndroidLTargetAspectRatioQuirk

public class Nexus4AndroidLTargetAspectRatioQuirk implements Quirk


Quirk that produces stretched preview on Nexus 4 devices running Android L(API levels 21 and 22).

There is a Camera1/HAL1 issue on the Nexus 4. The preview will be stretched when configuring a JPEG that doesn't actually have the same aspect ratio as the maximum JPEG resolution. See: b/19606058.

Summary

Public methods

@TargetAspectRatio.Ratio @NonNull int

Get the corrected aspect ratio.

Public methods

getCorrectedAspectRatio

@TargetAspectRatio.Ratio
@NonNull
public @TargetAspectRatio.Ratio int getCorrectedAspectRatio()

Get the corrected aspect ratio.