Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/Plugins/SharePlugin/ShareActivity.java
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Line(s) | 45 | public class ShareActivity extends AppCompatActivity { | |||
---|---|---|---|---|---|
141 | @Override | 141 | @Override | ||
142 | protected void onStart() { | 142 | protected void onStart() { | ||
143 | super.onStart(); | 143 | super.onStart(); | ||
144 | 144 | | |||
145 | final Intent intent = getIntent(); | 145 | final Intent intent = getIntent(); | ||
146 | final String deviceId = intent.getStringExtra("deviceId"); | 146 | final String deviceId = intent.getStringExtra("deviceId"); | ||
147 | 147 | | |||
148 | if (deviceId != null) { | 148 | if (deviceId != null) { | ||
149 | | ||||
150 | BackgroundService.runWithPlugin(this, deviceId, SharePlugin.class, plugin -> { | 149 | BackgroundService.runWithPlugin(this, deviceId, SharePlugin.class, plugin -> { | ||
151 | plugin.share(intent); | 150 | plugin.share(intent); | ||
152 | finish(); | 151 | finish(); | ||
153 | }); | 152 | }); | ||
154 | } else { | 153 | } else { | ||
155 | 154 | | |||
156 | BackgroundService.addGuiInUseCounter(this); | 155 | BackgroundService.addGuiInUseCounter(this); | ||
157 | BackgroundService.RunCommand(this, service -> { | 156 | BackgroundService.RunCommand(this, service -> { | ||
Show All 16 Lines |