remove callList from BaseActivity (#1503)

* remove callList from BaseActivity

* remove callList from BaseActivity
This commit is contained in:
Konrad Pozniak 2019-09-28 16:29:40 +02:00 committed by GitHub
parent a84fd6e834
commit 8f92274e0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 14 deletions

View file

@ -50,12 +50,8 @@ import java.util.List;
import javax.inject.Inject;
import retrofit2.Call;
public abstract class BaseActivity extends AppCompatActivity implements Injectable {
protected List<Call> callList;
@Inject
public ThemeUtils themeUtils;
@Inject
@ -95,7 +91,6 @@ public abstract class BaseActivity extends AppCompatActivity implements Injectab
redirectIfNotLoggedIn();
}
callList = new ArrayList<>();
requesters = new HashMap<>();
}
@ -164,14 +159,6 @@ public abstract class BaseActivity extends AppCompatActivity implements Injectab
}
}
@Override
protected void onDestroy() {
for (Call call : callList) {
call.cancel();
}
super.onDestroy();
}
public void showAccountChooserDialog(CharSequence dialogTitle, boolean showActiveAccount, AccountSelectionListener listener) {
List<AccountEntity> accounts = accountManager.getAllAccountsOrderedByActive();
AccountEntity activeAccount = accountManager.getActiveAccount();

View file

@ -268,7 +268,6 @@ class BottomSheetActivityTest {
mastodonApi = api
@Suppress("UNCHECKED_CAST")
bottomSheet = mock(BottomSheetBehavior::class.java) as BottomSheetBehavior<LinearLayout>
callList = arrayListOf()
}
override fun openLink(url: String) {