Skip to content

Commit 3ac4498

Browse files
committed
Remove lambda and java 8 compatible from library
1 parent b5b6690 commit 3ac4498

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

localizationActivity/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ android {
1818
res.srcDirs = ['src/main/res']
1919
}
2020
}
21-
compileOptions {
22-
sourceCompatibility JavaVersion.VERSION_1_8
23-
targetCompatibility JavaVersion.VERSION_1_8
24-
}
2521
}
2622

2723
dependencies {

localizationActivity/src/main/java/com/akexorcist/localizationactivity/core/LocalizationActivityDelegate.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,13 @@ public void onCreate(Bundle savedInstanceState) {
4747
}
4848

4949
// If activity is run to back stack. So we have to check if this activity is resume working.
50-
public void onResume(Context context) {
51-
new Handler().post(() -> {
52-
checkLocaleChange(context);
53-
checkAfterLocaleChanging();
50+
public void onResume(final Context context) {
51+
new Handler().post(new Runnable() {
52+
@Override
53+
public void run() {
54+
checkLocaleChange(context);
55+
checkAfterLocaleChanging();
56+
}
5457
});
5558
}
5659

localizationActivity/src/main/java/com/akexorcist/localizationactivity/ui/BlankDummyActivity.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public void finish() {
2525
}
2626

2727
private void delayedFinish() {
28-
new Handler().postDelayed(this::finish, 200);
28+
new Handler().postDelayed(new Runnable() {
29+
@Override
30+
public void run() {
31+
finish();
32+
}
33+
}, 200);
2934
}
3035
}

0 commit comments

Comments
 (0)