mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 21:45:42 +03:00
parent
7aa4743a32
commit
4ea5f2e226
2 changed files with 12 additions and 8 deletions
|
@ -299,11 +299,15 @@ public class CallNotificationController extends BaseController {
|
|||
|
||||
renderScript = RenderScript.create(getActivity());
|
||||
|
||||
if (handler == null) {
|
||||
handler = new Handler();
|
||||
|
||||
try {
|
||||
cache.evictAll();
|
||||
} catch (IOException e) {
|
||||
Log.e(TAG, "Failed to evict cache");
|
||||
}
|
||||
}
|
||||
|
||||
if (currentConversation == null) {
|
||||
handleFromNotification();
|
||||
|
|
|
@ -38,8 +38,8 @@ import autodagger.AutoInjector;
|
|||
import retrofit2.Retrofit;
|
||||
|
||||
@AutoInjector(NextcloudTalkApplication.class)
|
||||
public class ApiHolder {
|
||||
private static final String TAG = "ApiHolder";
|
||||
public class ApplicationWideApiHolder {
|
||||
private static final String TAG = "ApplicationWideApiHolder";
|
||||
|
||||
@SuppressLint("UseSparseArrays")
|
||||
private Map<Long, NcApi> ncApiHashMap;
|
||||
|
@ -50,9 +50,9 @@ public class ApiHolder {
|
|||
@Inject
|
||||
Retrofit retrofit;
|
||||
|
||||
private static final ApiHolder holder = new ApiHolder();
|
||||
private static final ApplicationWideApiHolder holder = new ApplicationWideApiHolder();
|
||||
|
||||
public static ApiHolder getInstance() {
|
||||
public static ApplicationWideApiHolder getInstance() {
|
||||
return holder;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue