fix: keyboard overlapping with controls
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
<activity
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
|
||||
android:launchMode="singleTask"
|
||||
android:windowSoftInputMode="adjustResize"
|
||||
android:label="@string/main_activity_title"
|
||||
android:name=".MainActivity"
|
||||
android:exported="true">
|
||||
|
||||
@ -5,7 +5,7 @@ import androidx.activity.enableEdgeToEdge
|
||||
|
||||
class MainActivity : TauriActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
enableEdgeToEdge()
|
||||
// enableEdgeToEdge()
|
||||
super.onCreate(savedInstanceState)
|
||||
}
|
||||
}
|
||||
|
||||
@ -313,5 +313,6 @@
|
||||
width: calc(100%);
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
padding-bottom: calc(40px + env(safe-area-inset-bottom));
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -37,6 +37,19 @@ export async function downloadPMTiles(url: string, name: string): Promise<void>
|
||||
console.log(`Download completed: ${path}`);
|
||||
}
|
||||
|
||||
export async function hasPMTiles(name: string): Promise<boolean> {
|
||||
const filename = name + ".pmtiles";
|
||||
const baseDir = BaseDirectory.AppData;
|
||||
const appDataDirPath = await appDataDir();
|
||||
|
||||
if(!await exists(appDataDirPath)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const filePath = await join(appDataDirPath, filename);
|
||||
return await exists(filePath, { baseDir });
|
||||
}
|
||||
|
||||
export async function getPMTiles(name: string) {
|
||||
const filename = name + ".pmtiles";
|
||||
const baseDir = BaseDirectory.AppData;
|
||||
|
||||
Reference in New Issue
Block a user