Skip to content

Commit

Permalink
InstalledAppDetails: fix refreshing storage summary after force stop
Browse files Browse the repository at this point in the history
* if app is force stopped, current implementation causes a nasty loop which in turn causes
  very high cpu usage: refreshUi() > checkForceStop() > mCheckKillProcessesReceiver > refreshUi()

* fix storage not being updated by running refreshUi() in onRunningStateChanged from AppInfoBase

Ticket: CYNGNOS-2527

Change-Id: Iec24bb620d1a6287d7ccf583db978ef338ef762e
  • Loading branch information
Altaf-Mahdi authored and akhilnarang committed Jan 25, 2018
1 parent 183be86 commit d9e34f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/com/android/settings/applications/AppInfoBase.java
Expand Up @@ -183,7 +183,7 @@ protected void showDialogInner(int id, int moveErrorCode) {

@Override
public void onRunningStateChanged(boolean running) {
// No op.
refreshUi();
}

@Override
Expand Down
Expand Up @@ -1445,7 +1445,6 @@ public void onReceive(Context context, Intent intent) {
Log.d(LOG_TAG, "Got broadcast response: Restart status for "
+ mAppEntry.info.packageName + " " + enabled);
updateForceStopButton(enabled);
refreshUi();
}
};

Expand Down

0 comments on commit d9e34f6

Please sign in to comment.