Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 840c617c authored by Ryan Bavetta's avatar Ryan Bavetta Committed by Android (Google) Code Review
Browse files

Merge "Fix soundtrigger test, adds null pointer check" into nyc-dev

parents 3b8db2dc ea04e8fe
Loading
Loading
Loading
Loading
+17 −10
Original line number Diff line number Diff line
@@ -689,12 +689,19 @@ public class SoundTrigger {
                return false;
            if (triggerInData != other.triggerInData)
                return false;
            if (captureFormat == null) {
                if (other.captureFormat != null)
                    return false;
            } else {
                if (other.captureFormat == null)
                    return false;
                if (captureFormat.getSampleRate() != other.captureFormat.getSampleRate())
                    return false;
                if (captureFormat.getEncoding() != other.captureFormat.getEncoding())
                    return false;
                if (captureFormat.getChannelMask() != other.captureFormat.getChannelMask())
                    return false;
            }
            return true;
        }