Fix invalidated element access exception in ObjectLiteralToLambdaIntention
#KT-36149 fixed #KT-36152 fixed
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// Stubbed from Android Activity
|
||||
class Activity {
|
||||
public final void runOnUiThread(Runnable action) {
|
||||
action.run();
|
||||
}
|
||||
}
|
||||
|
||||
public class Foo {
|
||||
private Activity activity;
|
||||
|
||||
public void foo() {
|
||||
synchronized (this) {
|
||||
activity.runOnUiThread(new Runnable() {
|
||||
public void run() {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public void bar() {
|
||||
synchronized (this) {
|
||||
activity.runOnUiThread(new Runnable() {
|
||||
public void run() {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user