2019-04-21 12:09:30 +02:00
|
|
|
/* Copyright 2019 Thomas Schneider
|
|
|
|
*
|
2019-05-18 11:10:30 +02:00
|
|
|
* This file is a part of Fedilab
|
2019-04-21 12:09:30 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
|
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
2019-05-18 11:10:30 +02:00
|
|
|
* Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
2019-04-21 12:09:30 +02:00
|
|
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
* Public License for more details.
|
|
|
|
*
|
2019-05-18 11:10:30 +02:00
|
|
|
* You should have received a copy of the GNU General Public License along with Fedilab; if not,
|
2019-04-21 12:09:30 +02:00
|
|
|
* see <http://www.gnu.org/licenses>. */
|
2019-05-18 11:10:30 +02:00
|
|
|
package app.fedilab.android.asynctasks;
|
2019-04-21 12:09:30 +02:00
|
|
|
|
|
|
|
import android.content.Context;
|
2019-11-01 15:17:17 +01:00
|
|
|
import android.content.SharedPreferences;
|
2019-04-21 12:09:30 +02:00
|
|
|
import android.database.sqlite.SQLiteDatabase;
|
2021-01-19 17:43:51 +01:00
|
|
|
import android.os.Handler;
|
|
|
|
import android.os.Looper;
|
2019-04-26 19:05:09 +02:00
|
|
|
|
2019-04-21 12:09:30 +02:00
|
|
|
import java.lang.ref.WeakReference;
|
|
|
|
import java.util.ArrayList;
|
2019-11-01 15:17:17 +01:00
|
|
|
import java.util.Date;
|
2019-04-22 19:10:07 +02:00
|
|
|
import java.util.Iterator;
|
2019-04-21 12:09:30 +02:00
|
|
|
import java.util.List;
|
2019-05-18 11:10:30 +02:00
|
|
|
|
2020-07-14 19:50:54 +02:00
|
|
|
import app.fedilab.android.BuildConfig;
|
2019-11-15 16:32:25 +01:00
|
|
|
import app.fedilab.android.activities.MainActivity;
|
2019-05-18 11:10:30 +02:00
|
|
|
import app.fedilab.android.client.API;
|
|
|
|
import app.fedilab.android.client.APIResponse;
|
|
|
|
import app.fedilab.android.client.Entities.ManageTimelines;
|
|
|
|
import app.fedilab.android.client.Entities.RemoteInstance;
|
|
|
|
import app.fedilab.android.client.Entities.TagTimeline;
|
2019-07-22 11:29:53 +02:00
|
|
|
import app.fedilab.android.helper.Helper;
|
2019-11-15 16:32:25 +01:00
|
|
|
import app.fedilab.android.interfaces.OnSyncTimelineInterface;
|
2019-05-18 11:10:30 +02:00
|
|
|
import app.fedilab.android.sqlite.InstancesDAO;
|
|
|
|
import app.fedilab.android.sqlite.SearchDAO;
|
|
|
|
import app.fedilab.android.sqlite.Sqlite;
|
|
|
|
import app.fedilab.android.sqlite.TimelinesDAO;
|
2019-04-21 12:09:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by Thomas on 21/04/2019.
|
|
|
|
* Retrieves timelines
|
|
|
|
*/
|
|
|
|
|
2021-01-19 17:43:51 +01:00
|
|
|
public class SyncTimelinesAsyncTask {
|
2019-04-21 12:09:30 +02:00
|
|
|
|
|
|
|
|
2021-01-19 17:43:51 +01:00
|
|
|
private final OnSyncTimelineInterface listener;
|
|
|
|
private final int position;
|
|
|
|
private final WeakReference<Context> contextReference;
|
|
|
|
private final boolean syncLists;
|
2019-04-21 12:09:30 +02:00
|
|
|
private List<ManageTimelines> manageTimelines;
|
|
|
|
|
2019-11-01 15:17:17 +01:00
|
|
|
|
|
|
|
public SyncTimelinesAsyncTask(Context context, int position, boolean syncLists, OnSyncTimelineInterface onSyncTimelineInterface) {
|
2019-04-21 12:09:30 +02:00
|
|
|
this.contextReference = new WeakReference<>(context);
|
|
|
|
this.listener = onSyncTimelineInterface;
|
2019-04-25 07:38:34 +02:00
|
|
|
this.position = position;
|
2019-11-01 15:17:17 +01:00
|
|
|
this.syncLists = syncLists;
|
2021-01-19 17:43:51 +01:00
|
|
|
doInBackground();
|
2019-04-21 12:09:30 +02:00
|
|
|
}
|
|
|
|
|
2021-01-19 17:43:51 +01:00
|
|
|
protected void doInBackground() {
|
|
|
|
new Thread(() -> {
|
|
|
|
SQLiteDatabase db = Sqlite.getInstance(contextReference.get().getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
|
|
|
|
manageTimelines = new TimelinesDAO(contextReference.get(), db).getAllTimelines();
|
|
|
|
//First time that the timeline is created
|
|
|
|
int i = 0;
|
|
|
|
if (manageTimelines == null || manageTimelines.size() == 0) {
|
|
|
|
manageTimelines = new ArrayList<>();
|
|
|
|
//Add home TL
|
|
|
|
ManageTimelines manageHome = new ManageTimelines();
|
|
|
|
manageHome.setDisplayed(true);
|
|
|
|
manageHome.setType(ManageTimelines.Type.HOME);
|
|
|
|
manageHome.setPosition(i);
|
|
|
|
manageTimelines.add(manageHome);
|
2019-04-22 13:16:35 +02:00
|
|
|
i++;
|
2021-01-19 17:43:51 +01:00
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(manageHome);
|
|
|
|
//Add Direct notification TL
|
|
|
|
ManageTimelines manageNotif = new ManageTimelines();
|
|
|
|
manageNotif.setDisplayed(true);
|
|
|
|
manageNotif.setType(ManageTimelines.Type.NOTIFICATION);
|
|
|
|
manageNotif.setPosition(i);
|
2019-04-22 13:16:35 +02:00
|
|
|
i++;
|
2021-01-19 17:43:51 +01:00
|
|
|
manageTimelines.add(manageNotif);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(manageNotif);
|
|
|
|
//Add Direct message TL
|
|
|
|
ManageTimelines manageDirect = new ManageTimelines();
|
|
|
|
manageDirect.setDisplayed(true);
|
|
|
|
manageDirect.setType(ManageTimelines.Type.DIRECT);
|
|
|
|
manageDirect.setPosition(i);
|
2019-04-22 13:16:35 +02:00
|
|
|
i++;
|
2021-01-19 17:43:51 +01:00
|
|
|
manageTimelines.add(manageDirect);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(manageDirect);
|
|
|
|
//Add Local TL
|
|
|
|
ManageTimelines manageLocal = new ManageTimelines();
|
|
|
|
manageLocal.setDisplayed(true);
|
|
|
|
manageLocal.setType(ManageTimelines.Type.LOCAL);
|
|
|
|
manageLocal.setPosition(i);
|
|
|
|
i++;
|
|
|
|
manageTimelines.add(manageLocal);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(manageLocal);
|
|
|
|
if (MainActivity.social != UpdateAccountInfoAsyncTask.SOCIAL.FRIENDICA) {
|
|
|
|
//Add Public TL
|
|
|
|
ManageTimelines managePublic = new ManageTimelines();
|
|
|
|
managePublic.setDisplayed(true);
|
|
|
|
managePublic.setType(ManageTimelines.Type.PUBLIC);
|
|
|
|
managePublic.setPosition(i);
|
2019-04-22 13:16:35 +02:00
|
|
|
i++;
|
2021-01-19 17:43:51 +01:00
|
|
|
manageTimelines.add(managePublic);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(managePublic);
|
2019-04-21 12:09:30 +02:00
|
|
|
}
|
2021-01-19 17:43:51 +01:00
|
|
|
if (!BuildConfig.lite && (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.MASTODON || MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.PLEROMA)) {
|
|
|
|
//Add Public ART
|
|
|
|
ManageTimelines manageArt = new ManageTimelines();
|
|
|
|
manageArt.setDisplayed(true);
|
|
|
|
manageArt.setType(ManageTimelines.Type.ART);
|
|
|
|
manageArt.setPosition(i);
|
|
|
|
i++;
|
|
|
|
manageTimelines.add(manageArt);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(manageArt);
|
|
|
|
//Add Public PEERTUBE
|
|
|
|
ManageTimelines managePeertube = new ManageTimelines();
|
|
|
|
managePeertube.setDisplayed(true);
|
|
|
|
managePeertube.setType(ManageTimelines.Type.PEERTUBE);
|
|
|
|
managePeertube.setPosition(i);
|
2019-04-22 13:16:35 +02:00
|
|
|
i++;
|
2021-01-19 17:43:51 +01:00
|
|
|
manageTimelines.add(managePeertube);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(managePeertube);
|
2019-04-21 12:09:30 +02:00
|
|
|
}
|
2019-04-22 19:10:07 +02:00
|
|
|
|
2021-01-19 17:43:51 +01:00
|
|
|
List<TagTimeline> tagTimelines = new SearchDAO(contextReference.get(), db).getAll();
|
|
|
|
if (tagTimelines != null && tagTimelines.size() > 0) {
|
|
|
|
for (TagTimeline ttl : tagTimelines) {
|
|
|
|
//Add tag timelines
|
|
|
|
ManageTimelines manageTagTimeline = new ManageTimelines();
|
|
|
|
manageTagTimeline.setDisplayed(true);
|
|
|
|
manageTagTimeline.setType(ManageTimelines.Type.TAG);
|
|
|
|
manageTagTimeline.setPosition(i);
|
|
|
|
manageTagTimeline.setTagTimeline(ttl);
|
|
|
|
manageTimelines.add(manageTagTimeline);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(manageTagTimeline);
|
|
|
|
i++;
|
2019-04-24 06:57:21 +02:00
|
|
|
}
|
|
|
|
}
|
2021-01-19 17:43:51 +01:00
|
|
|
List<RemoteInstance> instances = new InstancesDAO(contextReference.get(), db).getAllInstances();
|
|
|
|
if (instances != null && instances.size() > 0) {
|
|
|
|
for (RemoteInstance ritl : instances) {
|
|
|
|
//Add remote instances
|
|
|
|
ManageTimelines manageRemoteTimline = new ManageTimelines();
|
|
|
|
manageRemoteTimline.setDisplayed(true);
|
|
|
|
manageRemoteTimline.setType(ManageTimelines.Type.INSTANCE);
|
|
|
|
manageRemoteTimline.setPosition(i);
|
|
|
|
manageRemoteTimline.setRemoteInstance(ritl);
|
|
|
|
manageTimelines.add(manageRemoteTimline);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(manageRemoteTimline);
|
|
|
|
i++;
|
|
|
|
}
|
2019-04-22 19:10:07 +02:00
|
|
|
}
|
|
|
|
}
|
2019-04-25 07:38:34 +02:00
|
|
|
|
2021-01-19 17:43:51 +01:00
|
|
|
List<TagTimeline> tagsInDb = new SearchDAO(contextReference.get(), db).getAll();
|
|
|
|
List<RemoteInstance> instancesInDb = new InstancesDAO(contextReference.get(), db).getAllInstances();
|
|
|
|
|
|
|
|
if (tagsInDb != null) {
|
2019-09-06 17:55:14 +02:00
|
|
|
for (TagTimeline tag : tagsInDb) {
|
2021-01-19 17:43:51 +01:00
|
|
|
boolean isInDb = false;
|
|
|
|
ManageTimelines timelines_tmp = null;
|
|
|
|
for (ManageTimelines manageTimeline : manageTimelines) {
|
|
|
|
if (manageTimeline.getTagTimeline() == null)
|
|
|
|
continue;
|
|
|
|
if (manageTimeline.getTagTimeline().getId() == tag.getId()) {
|
|
|
|
isInDb = true;
|
|
|
|
timelines_tmp = manageTimeline;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!isInDb) {
|
|
|
|
ManageTimelines manageTL = new ManageTimelines();
|
|
|
|
manageTL.setTagTimeline(tag);
|
|
|
|
manageTL.setDisplayed(true);
|
|
|
|
manageTL.setType(ManageTimelines.Type.TAG);
|
|
|
|
manageTL.setPosition(manageTimelines.size());
|
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(manageTL);
|
|
|
|
} else {
|
|
|
|
//Update list
|
|
|
|
timelines_tmp.setTagTimeline(tag);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).update(timelines_tmp);
|
2019-04-25 07:38:34 +02:00
|
|
|
}
|
|
|
|
}
|
2019-04-22 19:10:07 +02:00
|
|
|
|
2021-01-19 17:43:51 +01:00
|
|
|
for (ManageTimelines manageTimelines : manageTimelines) {
|
|
|
|
if (manageTimelines.getTagTimeline() == null)
|
2019-04-24 06:57:21 +02:00
|
|
|
continue;
|
2021-01-19 17:43:51 +01:00
|
|
|
boolean shouldBeRemoved = true;
|
|
|
|
for (TagTimeline tag : tagsInDb) {
|
|
|
|
if (tag.getId() == manageTimelines.getTagTimeline().getId()) {
|
|
|
|
shouldBeRemoved = false;
|
|
|
|
break;
|
|
|
|
}
|
2019-04-24 06:57:21 +02:00
|
|
|
}
|
2021-01-19 17:43:51 +01:00
|
|
|
if (shouldBeRemoved) {
|
|
|
|
new TimelinesDAO(contextReference.get(), db).remove(manageTimelines);
|
2019-04-25 07:38:34 +02:00
|
|
|
}
|
|
|
|
}
|
2019-04-23 18:14:12 +02:00
|
|
|
}
|
2019-11-01 15:17:17 +01:00
|
|
|
|
2021-01-19 17:43:51 +01:00
|
|
|
if (instancesInDb != null) {
|
|
|
|
for (RemoteInstance instance : instancesInDb) {
|
|
|
|
boolean isInDb = false;
|
|
|
|
ManageTimelines timelines_tmp = null;
|
2019-11-01 15:17:17 +01:00
|
|
|
for (ManageTimelines manageTimeline : manageTimelines) {
|
2021-01-19 17:43:51 +01:00
|
|
|
if (manageTimeline.getRemoteInstance() == null)
|
2019-11-01 15:17:17 +01:00
|
|
|
continue;
|
2021-01-19 17:43:51 +01:00
|
|
|
|
|
|
|
if (manageTimeline.getRemoteInstance().getHost().trim().equals(instance.getHost().trim())) {
|
|
|
|
isInDb = true;
|
|
|
|
timelines_tmp = manageTimeline;
|
|
|
|
break;
|
2019-08-05 18:10:49 +02:00
|
|
|
}
|
|
|
|
}
|
2021-01-19 17:43:51 +01:00
|
|
|
if (!isInDb) {
|
|
|
|
ManageTimelines manageTL = new ManageTimelines();
|
|
|
|
manageTL.setRemoteInstance(instance);
|
|
|
|
manageTL.setDisplayed(true);
|
|
|
|
manageTL.setType(ManageTimelines.Type.INSTANCE);
|
|
|
|
manageTL.setPosition(manageTimelines.size());
|
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(manageTL);
|
|
|
|
manageTimelines.add(manageTL);
|
|
|
|
} else {
|
|
|
|
//Update list
|
|
|
|
timelines_tmp.setRemoteInstance(instance);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).update(timelines_tmp);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (ManageTimelines manageTimelines : manageTimelines) {
|
|
|
|
if (manageTimelines.getRemoteInstance() == null)
|
|
|
|
continue;
|
|
|
|
boolean shouldBeRemoved = true;
|
|
|
|
for (RemoteInstance instance : instancesInDb) {
|
|
|
|
if (instance.getHost().trim().equals(manageTimelines.getRemoteInstance().getHost().trim())) {
|
|
|
|
shouldBeRemoved = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (shouldBeRemoved) {
|
|
|
|
new TimelinesDAO(contextReference.get(), db).remove(manageTimelines);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.syncLists) {
|
|
|
|
APIResponse apiResponse;
|
|
|
|
if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.MASTODON || MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.PLEROMA) {
|
|
|
|
List<app.fedilab.android.client.Entities.List> listsAPI;
|
|
|
|
try {
|
|
|
|
apiResponse = new API(contextReference.get()).getLists();
|
|
|
|
listsAPI = apiResponse.getLists();
|
|
|
|
//Check potential duplicated lists in db
|
|
|
|
List<ManageTimelines> duplicated_id = new ArrayList<>();
|
|
|
|
List<String> present_id = new ArrayList<>();
|
|
|
|
for (ManageTimelines manageTimeline : manageTimelines) {
|
|
|
|
if (manageTimeline.getListTimeline() == null)
|
|
|
|
continue;
|
|
|
|
if (!present_id.contains(manageTimeline.getListTimeline().getId())) {
|
|
|
|
present_id.add(manageTimeline.getListTimeline().getId());
|
2019-11-01 15:17:17 +01:00
|
|
|
} else {
|
2021-01-19 17:43:51 +01:00
|
|
|
duplicated_id.add(manageTimeline);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).remove(manageTimeline);
|
2019-08-19 18:30:47 +02:00
|
|
|
}
|
|
|
|
}
|
2021-01-19 17:43:51 +01:00
|
|
|
manageTimelines.removeAll(duplicated_id);
|
|
|
|
if (listsAPI != null && listsAPI.size() > 0) {
|
|
|
|
//Loop through results
|
2019-11-01 15:17:17 +01:00
|
|
|
for (app.fedilab.android.client.Entities.List list : listsAPI) {
|
2021-01-19 17:43:51 +01:00
|
|
|
boolean isInDb = false;
|
|
|
|
ManageTimelines timelines_tmp = null;
|
|
|
|
for (ManageTimelines manageTimeline : manageTimelines) {
|
|
|
|
if (manageTimeline.getListTimeline() == null)
|
|
|
|
continue;
|
|
|
|
if (manageTimeline.getListTimeline().getId().equals(list.getId())) {
|
|
|
|
isInDb = true;
|
|
|
|
timelines_tmp = manageTimeline;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//The current list is not registred in the database
|
|
|
|
if (!isInDb) {
|
|
|
|
ManageTimelines manageTL = new ManageTimelines();
|
|
|
|
manageTL.setListTimeline(list);
|
|
|
|
manageTL.setDisplayed(true);
|
|
|
|
manageTL.setType(ManageTimelines.Type.LIST);
|
|
|
|
manageTL.setPosition(manageTimelines.size());
|
|
|
|
new TimelinesDAO(contextReference.get(), db).insert(manageTL);
|
|
|
|
manageTimelines.add(manageTL);
|
|
|
|
} else {
|
|
|
|
//Update list
|
|
|
|
timelines_tmp.setListTimeline(list);
|
|
|
|
new TimelinesDAO(contextReference.get(), db).update(timelines_tmp);
|
2019-11-01 15:17:17 +01:00
|
|
|
}
|
|
|
|
}
|
2021-01-19 17:43:51 +01:00
|
|
|
ArrayList<ManageTimelines> manageTimelinesToRemove = new ArrayList<>();
|
|
|
|
for (ManageTimelines dbtTimelines : manageTimelines) {
|
|
|
|
if (dbtTimelines.getListTimeline() == null)
|
2019-11-01 15:17:17 +01:00
|
|
|
continue;
|
2021-01-19 17:43:51 +01:00
|
|
|
boolean shouldBeRemoved = true;
|
|
|
|
for (app.fedilab.android.client.Entities.List list : listsAPI) {
|
|
|
|
if (list.getId().equals(dbtTimelines.getListTimeline().getId())) {
|
|
|
|
shouldBeRemoved = false;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (shouldBeRemoved) {
|
|
|
|
new TimelinesDAO(contextReference.get(), db).remove(dbtTimelines);
|
|
|
|
manageTimelinesToRemove.add(dbtTimelines);
|
|
|
|
}
|
2019-11-01 15:17:17 +01:00
|
|
|
}
|
|
|
|
if (manageTimelinesToRemove.size() > 0) {
|
|
|
|
manageTimelines.removeAll(manageTimelinesToRemove);
|
|
|
|
}
|
2021-01-19 17:43:51 +01:00
|
|
|
} else { //No lists, all are removed if exist in db
|
|
|
|
ArrayList<ManageTimelines> manageTimelinesToRemove = new ArrayList<>();
|
|
|
|
if (apiResponse.getError() == null) { //Only done if there is no errors when fetching lists
|
|
|
|
for (ManageTimelines manageTimelines : manageTimelines) {
|
|
|
|
if (manageTimelines.getListTimeline() == null)
|
|
|
|
continue;
|
|
|
|
new TimelinesDAO(contextReference.get(), db).remove(manageTimelines);
|
|
|
|
manageTimelinesToRemove.add(manageTimelines);
|
|
|
|
}
|
|
|
|
if (manageTimelinesToRemove.size() > 0) {
|
|
|
|
manageTimelines.removeAll(manageTimelinesToRemove);
|
|
|
|
}
|
|
|
|
}
|
2019-11-01 15:17:17 +01:00
|
|
|
}
|
2021-01-19 17:43:51 +01:00
|
|
|
SharedPreferences sharedpreferences = contextReference.get().getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
|
|
|
|
String userId = sharedpreferences.getString(Helper.PREF_KEY_ID, null);
|
|
|
|
String instance = Helper.getLiveInstance(contextReference.get());
|
|
|
|
SharedPreferences.Editor editor = sharedpreferences.edit();
|
|
|
|
editor.putString(Helper.LAST_DATE_LIST_FETCH + userId + instance, Helper.dateToString(new Date()));
|
|
|
|
editor.apply();
|
|
|
|
} catch (Exception ignored) {
|
2019-04-21 12:09:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-01-19 17:43:51 +01:00
|
|
|
for (Iterator<ManageTimelines> it = manageTimelines.iterator(); it.hasNext(); ) {
|
|
|
|
if (!it.next().isDisplayed()) {
|
|
|
|
it.remove();
|
|
|
|
}
|
2019-04-22 19:10:07 +02:00
|
|
|
}
|
2021-01-19 17:43:51 +01:00
|
|
|
Handler mainHandler = new Handler(Looper.getMainLooper());
|
|
|
|
Runnable myRunnable = () -> listener.syncedTimelines(manageTimelines, position);
|
|
|
|
mainHandler.post(myRunnable);
|
|
|
|
}).start();
|
2019-04-21 12:09:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|