mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-08-06 16:18:49 +00:00
bonk
This commit is contained in:
parent
9971250009
commit
a974cf5342
3 changed files with 18 additions and 20 deletions
|
@ -53,9 +53,7 @@ void Pandroid::onSmdhLoaded(const std::vector<u8>& smdh) {
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
AlberFunction(void, Setup)(JNIEnv* env, jobject obj) { env->GetJavaVM(&jvm); }
|
AlberFunction(void, Setup)(JNIEnv* env, jobject obj) { env->GetJavaVM(&jvm); }
|
||||||
|
|
||||||
AlberFunction(void, Pause)(JNIEnv* env, jobject obj) { emulator->pause(); }
|
AlberFunction(void, Pause)(JNIEnv* env, jobject obj) { emulator->pause(); }
|
||||||
|
|
||||||
AlberFunction(void, Resume)(JNIEnv* env, jobject obj) { emulator->resume(); }
|
AlberFunction(void, Resume)(JNIEnv* env, jobject obj) { emulator->resume(); }
|
||||||
|
|
||||||
AlberFunction(void, Initialize)(JNIEnv* env, jobject obj) {
|
AlberFunction(void, Initialize)(JNIEnv* env, jobject obj) {
|
||||||
|
|
|
@ -77,6 +77,7 @@ public class GameActivity extends BaseActivity {
|
||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
|
|
||||||
InputHandler.reset();
|
InputHandler.reset();
|
||||||
drawerFragment.open();
|
drawerFragment.open();
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,12 +63,18 @@ public class DrawerFragment extends Fragment implements DrawerLayout.DrawerListe
|
||||||
}
|
}
|
||||||
|
|
||||||
public void open() {
|
public void open() {
|
||||||
if (drawerContainer.isOpen())
|
if (!drawerContainer.isOpen()) {
|
||||||
return;
|
|
||||||
drawerContainer.setVisibility(View.VISIBLE);
|
drawerContainer.setVisibility(View.VISIBLE);
|
||||||
drawerContainer.open();
|
drawerContainer.open();
|
||||||
drawerContainer.postDelayed(this::refreshLayout, 20);
|
drawerContainer.postDelayed(this::refreshLayout, 20);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void close() {
|
||||||
|
if (drawerContainer.isOpen()) {
|
||||||
|
drawerContainer.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDrawerSlide(@NonNull View drawerView, float slideOffset) {}
|
public void onDrawerSlide(@NonNull View drawerView, float slideOffset) {}
|
||||||
|
@ -102,11 +108,4 @@ public class DrawerFragment extends Fragment implements DrawerLayout.DrawerListe
|
||||||
public boolean isOpened() {
|
public boolean isOpened() {
|
||||||
return drawerContainer.isOpen();
|
return drawerContainer.isOpen();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void close() {
|
|
||||||
if (!drawerContainer.isOpen()){
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
drawerContainer.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue