Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-08-10 22:20:38 +02:00
parent 7aa4743a32
commit 4ea5f2e226
2 changed files with 12 additions and 8 deletions

View file

@ -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();

View file

@ -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;
}