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

Commit 2c0c5c15 authored by /e/ robot's avatar /e/ robot
Browse files

Merge remote-tracking branch 'origin/lineage-16.0' into v1-pie

parents 07a8d1bc 2f6863ef
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -894,7 +894,14 @@ public final class BluetoothDevice implements Parcelable {
            return null;
        }
        try {
            return service.getRemoteAlias(this);
            String alias = service.getRemoteAlias(this);
            if (alias == null) {
                return getName();
            }
            return alias
                    .replace('\t', ' ')
                    .replace('\n', ' ')
                    .replace('\r', ' ');
        } catch (RemoteException e) {
            Log.e(TAG, "", e);
        }
+1 −7
Original line number Diff line number Diff line
@@ -630,13 +630,7 @@ public final class OutputConfiguration implements Parcelable {
            new Parcelable.Creator<OutputConfiguration>() {
        @Override
        public OutputConfiguration createFromParcel(Parcel source) {
            try {
                OutputConfiguration outputConfiguration = new OutputConfiguration(source);
                return outputConfiguration;
            } catch (Exception e) {
                Log.e(TAG, "Exception creating OutputConfiguration from parcel", e);
                return null;
            }
            return new OutputConfiguration(source);
        }

        @Override
+1 −7
Original line number Diff line number Diff line
@@ -36,13 +36,7 @@ public final class VendorTagDescriptor implements Parcelable {
            new Parcelable.Creator<VendorTagDescriptor>() {
        @Override
        public VendorTagDescriptor createFromParcel(Parcel source) {
            try {
                VendorTagDescriptor vendorDescriptor = new VendorTagDescriptor(source);
                return vendorDescriptor;
            } catch (Exception e) {
                Log.e(TAG, "Exception creating VendorTagDescriptor from parcel", e);
                return null;
            }
            return new VendorTagDescriptor(source);
        }

        @Override
+1 −7
Original line number Diff line number Diff line
@@ -36,13 +36,7 @@ public final class VendorTagDescriptorCache implements Parcelable {
            new Parcelable.Creator<VendorTagDescriptorCache>() {
        @Override
        public VendorTagDescriptorCache createFromParcel(Parcel source) {
            try {
                VendorTagDescriptorCache vendorDescriptorCache = new VendorTagDescriptorCache(source);
                return vendorDescriptorCache;
            } catch (Exception e) {
                Log.e(TAG, "Exception creating VendorTagDescriptorCache from parcel", e);
                return null;
            }
            return new VendorTagDescriptorCache(source);
        }

        @Override
+4 −3
Original line number Diff line number Diff line
@@ -64,8 +64,8 @@ public class DeviceChooserActivity extends Activity {
            final DeviceFilterPair selectedDevice = getService().mDevicesFound.get(0);
            setTitle(Html.fromHtml(getString(
                    R.string.confirmation_title,
                    getCallingAppName(),
                    selectedDevice.getDisplayName()), 0));
                    Html.escapeHtml(getCallingAppName()),
                    Html.escapeHtml(selectedDevice.getDisplayName())), 0));
            mPairButton = findViewById(R.id.button_pair);
            mPairButton.setOnClickListener(v -> onDeviceConfirmed(getService().mSelectedDevice));
            getService().mSelectedDevice = selectedDevice;
@@ -74,7 +74,8 @@ public class DeviceChooserActivity extends Activity {
            setContentView(R.layout.device_chooser);
            mPairButton = findViewById(R.id.button_pair);
            mPairButton.setVisibility(View.GONE);
            setTitle(Html.fromHtml(getString(R.string.chooser_title, getCallingAppName()), 0));
            setTitle(Html.fromHtml(getString(R.string.chooser_title,
                    Html.escapeHtml(getCallingAppName())), 0));
            mDeviceListView = findViewById(R.id.device_list);
            final DeviceDiscoveryService.DevicesAdapter adapter = getService().mDevicesAdapter;
            mDeviceListView.setAdapter(adapter);
Loading