| | |
| | | import com.basic.security.fragment.SettingFragment; |
| | | import com.basic.security.utils.FFmpeg; |
| | | import com.basic.security.utils.KeyboardUtil; |
| | | import com.basic.security.utils.LztekAndroidRoot; |
| | | import com.basic.security.widget.AuthDialog; |
| | | import com.basic.security.widget.MyMediaController; |
| | | import com.bumptech.glide.Glide; |
| | | |
| | |
| | | fragment_home.pullAlarmDataList(); |
| | | fragment_home.playAlarmSound(); |
| | | KeyboardUtil.setupUI(fragment_setting.getView()); |
| | | // KeyboardUtil.setupUI(mainActivityView); |
| | | // ffmpeg(); |
| | | } |
| | | |
| | | @Background |
| | |
| | | |
| | | @Click |
| | | public void goto_setting() { |
| | | if (currentFragment == fragment_home) { |
| | | // do_goto_setting(); |
| | | AuthDialog authDialog = new AuthDialog(this); |
| | | authDialog.show(); |
| | | } |
| | | } |
| | | |
| | | public void do_goto_setting() { |
| | | exit_fullscreen(); |
| | | hideOneFragment(fragment_home); |
| | | showOneFragment(fragment_setting); |
| | |
| | | |
| | | @Override |
| | | public void onBackPressed() { |
| | | exit_fullscreen(); |
| | | android.os.Process.killProcess(android.os.Process.myPid()); |
| | | System.exit(0); |
| | | } |
| | | |
| | | public boolean notInFullscreenMode() { |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | } |