/*
 * SPDX-FileCopyrightText: 2025 Albert Vaca Cintora <albertvaka@gmail.com>
 *
 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
package org.kde.kdeconnect.UserInterface.List

import android.view.LayoutInflater
import android.view.View
import org.kde.kdeconnect.Device
import org.kde.kdeconnect_tp.R

class UnreachableDeviceItem(
    device: Device,
    callback: ((d: Device) -> Unit),
) : DeviceItem(device, callback) {

    override fun toString(): String {
        return "UnreachableDeviceItem(device=$device)"
    }

    override fun inflateView(layoutInflater: LayoutInflater): View {
        return super.inflateView(layoutInflater).also {
            binding.listItemEntrySummary.setText(R.string.runcommand_notreachable)
            binding.listItemEntrySummary.visibility = View.VISIBLE
        }
    }
}
