Skip to content

Commit ec6506d

Browse files
committed
Release 0.2.10
1 parent b7361cb commit ec6506d

4 files changed

Lines changed: 21 additions & 12 deletions

File tree

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ android {
3333

3434
targetSdk 35
3535
versionCode 19
36-
versionName "0.2.10-SNAPSHOT"
36+
versionName "0.2.10"
3737
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
3838
vectorDrawables.generatedDensities = []
3939
}

app/src/main/java/org/exbin/bined/editor/android/MainActivity.java

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@
5454
import androidx.appcompat.widget.Toolbar;
5555
import androidx.core.app.ActivityCompat;
5656
import androidx.core.content.ContextCompat;
57+
import androidx.core.graphics.Insets;
5758
import androidx.core.os.LocaleListCompat;
59+
import androidx.core.view.ViewCompat;
60+
import androidx.core.view.WindowInsetsCompat;
5861
import androidx.fragment.app.DialogFragment;
5962

6063
import com.rustamg.filedialogs.FileDialog;
@@ -234,7 +237,20 @@ public void clearStatus() {
234237
protected void onCreate(@Nullable Bundle savedInstanceState) {
235238
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) {
236239
CompatUtils.enableEdgeToEdge(this);
237-
getWindow().getDecorView().setPadding(0, 0, 0, getNavigationBarHeight());
240+
ViewCompat.setOnApplyWindowInsetsListener(getWindow().getDecorView(), (view, windowInsets) -> {
241+
// Get the navigation bar insets
242+
Insets insets = windowInsets.getInsets(WindowInsetsCompat.Type.navigationBars());
243+
244+
// Apply the navigation bar height as bottom padding
245+
view.setPadding(
246+
view.getPaddingLeft(),
247+
view.getPaddingTop(),
248+
view.getPaddingRight(),
249+
insets.bottom // Dynamic height in pixels
250+
);
251+
252+
return windowInsets;
253+
});
238254
}
239255

240256
super.onCreate(savedInstanceState);
@@ -1678,13 +1694,4 @@ private void reportException(Throwable exception) {
16781694
public enum FallbackFileType {
16791695
FILE, TABLE_FILE
16801696
}
1681-
1682-
private int getNavigationBarHeight() {
1683-
Resources resources = getResources();
1684-
int resourceId = resources.getIdentifier("navigation_bar_height", "dimen", "android");
1685-
if (resourceId > 0) {
1686-
return resources.getDimensionPixelSize(resourceId);
1687-
}
1688-
return 0;
1689-
}
16901697
}

changes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
0.2.10
1+
0.2.10 (2026-06-01)
22
- Added Greek translation
33
- Bug fixes
44

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Added Greek translation
2+
- Bug fixes

0 commit comments

Comments
 (0)