File tree Expand file tree Collapse file tree 12 files changed +93
-114
lines changed
java/org/docspell/docspellshare Expand file tree Collapse file tree 12 files changed +93
-114
lines changed Original file line number Diff line number Diff line change 11package org .docspell .docspellshare .activity ;
22
3- import androidx .annotation .NonNull ;
4- import androidx .appcompat .app .AppCompatActivity ;
5- import androidx .cardview .widget .CardView ;
6- import androidx .recyclerview .widget .LinearLayoutManager ;
7- import androidx .recyclerview .widget .RecyclerView ;
8- import androidx .swiperefreshlayout .widget .SwipeRefreshLayout ;
9-
103import android .content .Intent ;
114import android .os .Bundle ;
125import android .view .LayoutInflater ;
136import android .view .View ;
147import android .view .ViewGroup ;
158import android .widget .TextView ;
16-
9+ import androidx .annotation .NonNull ;
10+ import androidx .appcompat .app .AppCompatActivity ;
11+ import androidx .cardview .widget .CardView ;
12+ import androidx .recyclerview .widget .LinearLayoutManager ;
13+ import androidx .recyclerview .widget .RecyclerView ;
14+ import androidx .swiperefreshlayout .widget .SwipeRefreshLayout ;
15+ import java .util .List ;
1716import org .docspell .docspellshare .R ;
1817import org .docspell .docspellshare .data .UrlItem ;
1918import org .docspell .docspellshare .util .DataStore ;
2019
21- import java .util .List ;
22-
2320public class ChooseUrlActivity extends AppCompatActivity {
2421
2522 private SwipeRefreshLayout swipeView ;
Original file line number Diff line number Diff line change 22
33import android .content .Intent ;
44import android .os .Bundle ;
5-
65import androidx .appcompat .app .AppCompatActivity ;
7-
86import com .google .zxing .Result ;
9-
107import me .dm7 .barcodescanner .zxing .ZXingScannerView ;
118
129public class QrCodeActivity extends AppCompatActivity implements ZXingScannerView .ResultHandler {
Original file line number Diff line number Diff line change 88import android .util .Log ;
99import android .widget .ProgressBar ;
1010import android .widget .TextView ;
11-
1211import androidx .annotation .Nullable ;
1312import androidx .appcompat .app .AppCompatActivity ;
14-
13+ import java .util .Collections ;
14+ import java .util .List ;
1515import org .docspell .docspellshare .R ;
1616import org .docspell .docspellshare .data .Option ;
1717import org .docspell .docspellshare .data .UrlItem ;
2121import org .docspell .docspellshare .util .DataStore ;
2222import org .docspell .docspellshare .util .Strings ;
2323
24- import java .util .Collections ;
25- import java .util .List ;
26-
2724public class ShareActivity extends AppCompatActivity {
2825
2926 private static final int CHOOSE_URL = 1 ;
Original file line number Diff line number Diff line change 11package org .docspell .docspellshare .data ;
22
3+ import java .util .Objects ;
34import org .docspell .docspellshare .util .Effect ;
45import org .docspell .docspellshare .util .Fun ;
56import org .docspell .docspellshare .util .Lazy ;
67
7- import java .util .Objects ;
8-
98public abstract class Option <A > {
109
1110 private Option () {}
Original file line number Diff line number Diff line change 11package org .docspell .docspellshare .http ;
22
3+ import static org .docspell .docspellshare .util .Strings .requireNonEmpty ;
4+
35import android .content .ContentResolver ;
46import android .net .Uri ;
5-
67import androidx .annotation .NonNull ;
7-
8- import org .docspell .docspellshare .data .Option ;
9- import org .docspell .docspellshare .util .Uris ;
10-
118import java .io .IOException ;
129import java .io .InputStream ;
1310import java .util .ArrayList ;
1411import java .util .Arrays ;
1512import java .util .List ;
1613import java .util .concurrent .TimeUnit ;
17-
1814import okhttp3 .ConnectionSpec ;
1915import okhttp3 .MediaType ;
2016import okhttp3 .MultipartBody ;
2521import okio .BufferedSink ;
2622import okio .Okio ;
2723import okio .Source ;
28-
29- import static org .docspell .docspellshare .util .Strings . requireNonEmpty ;
24+ import org . docspell . docspellshare . data . Option ;
25+ import org .docspell .docspellshare .util .Uris ;
3026
3127public final class HttpRequest {
3228 private static final int CHUNK_SIZE = 16 * 1024 ;
Original file line number Diff line number Diff line change 11package org .docspell .docspellshare .http ;
22
33import android .util .Log ;
4-
54import java .io .IOException ;
65import java .net .InetAddress ;
76import java .net .Socket ;
87import java .net .SocketException ;
98import java .net .UnknownHostException ;
10-
119import javax .net .SocketFactory ;
1210
1311/**
Original file line number Diff line number Diff line change 22
33import android .os .Process ;
44import android .util .Log ;
5-
65import java .io .IOException ;
76import java .util .concurrent .ExecutorService ;
87import java .util .concurrent .Executors ;
Original file line number Diff line number Diff line change 33import android .app .Activity ;
44import android .content .Context ;
55import android .content .SharedPreferences ;
6-
7- import org .docspell .docspellshare .data .Option ;
8- import org .docspell .docspellshare .data .UrlItem ;
9-
106import java .util .ArrayList ;
117import java .util .Collections ;
128import java .util .List ;
9+ import org .docspell .docspellshare .data .Option ;
10+ import org .docspell .docspellshare .data .UrlItem ;
1311
1412public final class DataStore {
1513 private static final String SHARED_ITEMS_KEY = "org.docspell.docspellshare.ITEMS_KEY" ;
Original file line number Diff line number Diff line change 44public interface Lazy <A > {
55
66 A get ();
7-
87}
Original file line number Diff line number Diff line change 11package org .docspell .docspellshare .util ;
22
3- import org .docspell .docspellshare .data .Option ;
4-
53import java .net .MalformedURLException ;
64import java .net .URL ;
5+ import org .docspell .docspellshare .data .Option ;
76
87public final class Strings {
98 private Strings () {}
You can’t perform that action at this time.
0 commit comments