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

Commit c67f4a25 authored by David Luhmer's avatar David Luhmer
Browse files

refactor (type should never be null)

parent 5f83c1c7
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -76,12 +76,11 @@ public class AidlNetworkRequest extends NetworkRequest {
            stop();
        }

        String componentName;
        if (type != null && type.equalsIgnoreCase(Constants.ACCOUNT_TYPE_DEV)) {
        String componentName = Constants.PACKAGE_NAME_PROD;
        if (type.equals(Constants.ACCOUNT_TYPE_DEV)) {
            componentName = Constants.PACKAGE_NAME_DEV;
        } else {
            componentName = Constants.PACKAGE_NAME_PROD;
        }

        try {
            Intent intentService = new Intent();
            intentService.setComponent(new ComponentName(componentName,