Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/Plugins/SharePlugin/SendFileActivity.java
Show All 26 Lines | |||||
27 | import android.os.Build; | 27 | import android.os.Build; | ||
28 | import android.os.Bundle; | 28 | import android.os.Bundle; | ||
29 | import android.support.v7.app.AppCompatActivity; | 29 | import android.support.v7.app.AppCompatActivity; | ||
30 | import android.util.Log; | 30 | import android.util.Log; | ||
31 | import android.widget.Toast; | 31 | import android.widget.Toast; | ||
32 | 32 | | |||
33 | import org.kde.kdeconnect.BackgroundService; | 33 | import org.kde.kdeconnect.BackgroundService; | ||
34 | import org.kde.kdeconnect.Device; | 34 | import org.kde.kdeconnect.Device; | ||
35 | import org.kde.kdeconnect.UserInterface.ThemeUtil; | ||||
35 | import org.kde.kdeconnect_tp.R; | 36 | import org.kde.kdeconnect_tp.R; | ||
36 | 37 | | |||
37 | import java.util.ArrayList; | 38 | import java.util.ArrayList; | ||
38 | 39 | | |||
39 | 40 | | |||
40 | public class SendFileActivity extends AppCompatActivity { | 41 | public class SendFileActivity extends AppCompatActivity { | ||
41 | 42 | | |||
42 | String mDeviceId; | 43 | String mDeviceId; | ||
43 | 44 | | |||
44 | @Override | 45 | @Override | ||
45 | protected void onCreate(Bundle savedInstanceState) { | 46 | protected void onCreate(Bundle savedInstanceState) { | ||
46 | super.onCreate(savedInstanceState); | 47 | super.onCreate(savedInstanceState); | ||
48 | ThemeUtil.setUserPreferredTheme(this); | ||||
47 | 49 | | |||
48 | mDeviceId = getIntent().getStringExtra("deviceId"); | 50 | mDeviceId = getIntent().getStringExtra("deviceId"); | ||
49 | 51 | | |||
50 | Intent intent = new Intent(Intent.ACTION_GET_CONTENT); | 52 | Intent intent = new Intent(Intent.ACTION_GET_CONTENT); | ||
51 | intent.setType("*/*"); | 53 | intent.setType("*/*"); | ||
52 | if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2)) { | 54 | if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2)) { | ||
53 | intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); | 55 | intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); | ||
54 | } | 56 | } | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |