A
A
Alexander Sinitsyn2018-02-22 15:36:36
Android
Alexander Sinitsyn, 2018-02-22 15:36:36

How can CleanMaster affect how the widget works?

The application has a widget that handles pressing and
- disables pressing processing,
- changes information,
- displays Log -> "1"
- Heandler starts with a delay of 1 second.
- I display Log -> "2"
- another information is called - I display
Log -> "3"
- returns the click handler
And everything works properly (1-2-3), if you don't run CleanMaster. If you run it, then the widget either immediately gets stuck when you next click on the Hendler step (only 1 is displayed), or it works several times and then gets stuck. Moreover, the other button on the widget continues to work, i.e. the failure is in the work of the Handler, which does not start (2-3).
A piece of code... 1 is displayed, 2 is not displayed. What could be?

Log.i("SK", "1");
new Handler().postDelayed(new Runnable() {
  @Override
  public void run() {
    Log.i("SK", "2");
    updateWidgetView(widgetId);
  }
}, 1000);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2018-02-22
@GavriKos

Ask the developers of CleanMaster what they do with memory and all that.
It is possible that they unload a bunch of everything in their opinion "unnecessary"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question