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

Commit 955b30b3 authored by William Escande's avatar William Escande
Browse files

Reformat java file in android/apishim

Bug: 311772251
Flag: Exempt refactor
Test: None
Change-Id: If3ebadbb2064619cb04d96639545e7f4a8094d83
parent 8d6dc6e7
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ public class BluetoothCallShimImpl implements BluetoothCallShim {

    @Override
    public boolean isSilentRingingRequested(@Nullable Bundle extras) {
        return extras != null
            && extras.getBoolean(Call.EXTRA_SILENT_RINGING_REQUESTED);
        return extras != null && extras.getBoolean(Call.EXTRA_SILENT_RINGING_REQUESTED);
    }
}
+7 −7
Original line number Diff line number Diff line
@@ -28,21 +28,21 @@ import androidx.annotation.RequiresApi;
import com.android.bluetooth.apishim.common.BluetoothCallShim;

@RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
public class BluetoothCallShimImpl extends
        com.android.bluetooth.apishim.api33.BluetoothCallShimImpl {
public class BluetoothCallShimImpl
        extends com.android.bluetooth.apishim.api33.BluetoothCallShimImpl {

    @RequiresApi(Build.VERSION_CODES.TIRAMISU)
    public static BluetoothCallShim newInstance() {
        if (!isAtLeastU()) {
            return com.android.bluetooth.apishim.api33.BluetoothCallShimImpl
                    .newInstance();
            return com.android.bluetooth.apishim.api33.BluetoothCallShimImpl.newInstance();
        }
        return new BluetoothCallShimImpl();
    }

    @Override
    public boolean isSilentRingingRequested(@Nullable Bundle extras) {
        return extras != null && (extras.getBoolean(Call.EXTRA_SILENT_RINGING_REQUESTED)
        return extras != null
                && (extras.getBoolean(Call.EXTRA_SILENT_RINGING_REQUESTED)
                        || extras.getBoolean(Call.EXTRA_IS_SUPPRESSED_BY_DO_NOT_DISTURB));
    }
}
+1 −1

File changed.

Contains only whitespace changes.