| | |
| | | package com.secondworld.sdk; |
| | | |
| | | import android.content.Intent; |
| | | import android.os.Bundle; |
| | | import android.support.annotation.NonNull; |
| | | import android.webkit.WebView; |
| | | import androidx.annotation.NonNull; |
| | | import android.view.KeyEvent; |
| | | import android.widget.FrameLayout; |
| | | import android.widget.RelativeLayout; |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | protected void onRestart() { |
| | | super.onRestart(); |
| | | if (proxy != null) |
| | | proxy.onRestart(); |
| | | } |
| | | |
| | | @Override |
| | | protected void onResume() { |
| | | super.onResume(); |
| | | if (proxy != null) |
| | |
| | | } |
| | | |
| | | @Override |
| | | protected void onNewIntent(Intent intent) { |
| | | super.onNewIntent(intent); |
| | | if (proxy != null) |
| | | proxy.onNewIntent(intent); |
| | | } |
| | | |
| | | @Override |
| | | protected void onActivityResult(int requestCode, int resultCode, Intent data) { |
| | | super.onActivityResult(requestCode, resultCode, data); |
| | | if (proxy != null) |
| | | proxy.onActivityResult(requestCode, resultCode, data); |
| | | } |
| | | |
| | | @Override |
| | | public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { |
| | | super.onRequestPermissionsResult(requestCode, permissions, grantResults); |
| | | if (proxy != null) |
| | | proxy.onRequestPermissionsResult(requestCode, permissions, grantResults); |
| | | } |
| | | |
| | | @Override |
| | | public boolean onKeyDown(int keyCode, KeyEvent event) { |
| | | if (proxy == null) |
| | | return super.onKeyDown(keyCode, event); |
| | | boolean b = proxy.onKeyDown(keyCode, event); |
| | | return b ? b : super.onKeyDown(keyCode, event); |
| | | } |
| | | } |