Removing tracing and @Stability for a fixed bug

Bug: 142514365
Change-Id: I147850db274c465fb964eca30b97b3ebaaa2ccf6
This commit is contained in:
vadimt
2019-10-25 11:18:50 -07:00
parent efefa59f8c
commit 23c8341096
8 changed files with 1 additions and 66 deletions

View File

@@ -164,32 +164,15 @@ public class LoaderTask implements Runnable {
}
public void run() {
if (TestProtocol.sDebugTracing) {
Log.d(TestProtocol.LAUNCHER_DIDNT_INITIALIZE,
"LoaderTask1 " + this);
}
synchronized (this) {
// Skip fast if we are already stopped.
if (mStopped) {
return;
}
}
if (TestProtocol.sDebugTracing) {
Log.d(TestProtocol.LAUNCHER_DIDNT_INITIALIZE,
"LoaderTask2 " + this);
}
Object traceToken = TraceHelper.INSTANCE.beginSection(TAG);
TimingLogger logger = TestProtocol.sDebugTracing ?
new TimingLogger(TAG, "run") {
@Override
public void addSplit(String splitLabel) {
super.addSplit(splitLabel);
Log.d(TestProtocol.LAUNCHER_DIDNT_INITIALIZE,
"LoaderTask.addSplit " + splitLabel);
}
}
: new TimingLogger(TAG, "run");
TimingLogger logger = new TimingLogger(TAG, "run");
try (LauncherModel.LoaderTransaction transaction = mApp.getModel().beginLoader(this)) {
loadWorkspace();
logger.addSplit("loadWorkspace");
@@ -258,10 +241,6 @@ public class LoaderTask implements Runnable {
updateHandler.finish();
logger.addSplit("finish icon update");
if (TestProtocol.sDebugTracing) {
Log.d(TestProtocol.LAUNCHER_DIDNT_INITIALIZE,
"LoaderTask3 " + this);
}
transaction.commit();
} catch (CancellationException e) {
// Loader stopped, ignore