mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 18:07:55 +00:00
Rename RunCommandWidgetConfig -> RunCommandWidgetConfigActivity
This commit is contained in:
parent
a977b6da17
commit
7d3cf9690a
@ -202,7 +202,7 @@
|
|||||||
android:value="org.kde.kdeconnect.UserInterface.MainActivity" />
|
android:value="org.kde.kdeconnect.UserInterface.MainActivity" />
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name="org.kde.kdeconnect.Plugins.RunCommandPlugin.RunCommandWidgetConfig"
|
android:name="org.kde.kdeconnect.Plugins.RunCommandPlugin.RunCommandWidgetConfigActivity"
|
||||||
android:excludeFromRecents="true"
|
android:excludeFromRecents="true"
|
||||||
android:label="@string/pref_plugin_runcommand"
|
android:label="@string/pref_plugin_runcommand"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
@ -18,7 +18,7 @@ import org.kde.kdeconnect_tp.R
|
|||||||
import org.kde.kdeconnect_tp.databinding.WidgetRemoteCommandPluginDialogBinding
|
import org.kde.kdeconnect_tp.databinding.WidgetRemoteCommandPluginDialogBinding
|
||||||
import kotlin.streams.toList
|
import kotlin.streams.toList
|
||||||
|
|
||||||
class RunCommandWidgetConfig : AppCompatActivity() {
|
class RunCommandWidgetConfigActivity : AppCompatActivity() {
|
||||||
|
|
||||||
private var appWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID
|
private var appWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID
|
||||||
|
|
@ -92,7 +92,7 @@ internal fun updateAppWidget(
|
|||||||
val device: Device? = if (deviceId != null) KdeConnect.getInstance().getDevice(deviceId) else null
|
val device: Device? = if (deviceId != null) KdeConnect.getInstance().getDevice(deviceId) else null
|
||||||
|
|
||||||
val views = RemoteViews(BuildConfig.APPLICATION_ID, R.layout.widget_remotecommandplugin)
|
val views = RemoteViews(BuildConfig.APPLICATION_ID, R.layout.widget_remotecommandplugin)
|
||||||
val setDeviceIntent = Intent(context, RunCommandWidgetConfig::class.java)
|
val setDeviceIntent = Intent(context, RunCommandWidgetConfigActivity::class.java)
|
||||||
setDeviceIntent.putExtra(EXTRA_APPWIDGET_ID, appWidgetId)
|
setDeviceIntent.putExtra(EXTRA_APPWIDGET_ID, appWidgetId)
|
||||||
val setDevicePendingIntent = PendingIntent.getActivity(context, appWidgetId, setDeviceIntent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE)
|
val setDevicePendingIntent = PendingIntent.getActivity(context, appWidgetId, setDeviceIntent, PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE)
|
||||||
views.setOnClickPendingIntent(R.id.runcommandWidgetTitleHeader, setDevicePendingIntent)
|
views.setOnClickPendingIntent(R.id.runcommandWidgetTitleHeader, setDevicePendingIntent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user