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