hotfix deprecate function

This commit is contained in:
lionel 2021-01-14 12:11:28 +01:00
parent 8b3b9d4d99
commit 4612b1a994
5 changed files with 15 additions and 3 deletions

7
.idea/dictionaries/lionel.xml generated Normal file
View File

@ -0,0 +1,7 @@
<component name="ProjectDictionaryState">
<dictionary name="lionel">
<words>
<w>netdldata</w>
</words>
</dictionary>
</component>

View File

@ -87,7 +87,7 @@ public class MainActivity extends AppCompatActivity {
tr.handleSendText(sharedText);
} else {
Uri uri = intent.getParcelableExtra(Intent.EXTRA_STREAM);
new Thread(() -> tr.handleSendFile(uri)).start();
tr.handleSendFile(uri);
}
} else if (Intent.ACTION_SEND_MULTIPLE.equals(action) && type != null) {
viewPager.setCurrentItem(2);

View File

@ -29,7 +29,7 @@ public class Progress {
private static NotificationManagerCompat notifiManager = NotificationManagerCompat.from(Transfer.activity);
private static final LayoutInflater inflater = (LayoutInflater) Transfer.activity.getSystemService(Transfer.activity.LAYOUT_INFLATER_SERVICE);
private static List instances = new ArrayList();
private static List<Progress> instances = new ArrayList<>();
private Integer id;
private String name;

View File

@ -22,7 +22,7 @@ public class SectionsPagerAdapter extends FragmentPagerAdapter {
private final Context mContext;
public SectionsPagerAdapter(Context context, FragmentManager fm) {
super(fm);
super(fm, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT);
mContext = context;
}

View File

@ -17,6 +17,11 @@ allprojects {
google()
jcenter()
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
task clean(type: Delete) {