| | |
| | | package cn.flightfeather.thirdapp.module.base |
| | | |
| | | import android.annotation.SuppressLint |
| | | import android.content.Context |
| | | import android.content.Intent |
| | | import android.content.pm.ActivityInfo |
| | | import android.os.Bundle |
| | | import android.support.v4.app.Fragment |
| | | import android.support.v4.app.FragmentManager |
| | |
| | | import android.support.v7.widget.Toolbar |
| | | import android.view.MenuItem |
| | | import android.view.ViewGroup |
| | | import com.bumptech.glide.Glide |
| | | import com.bumptech.glide.util.Util |
| | | import io.reactivex.disposables.Disposable |
| | | import org.greenrobot.eventbus.EventBus |
| | | |
| | |
| | | |
| | | protected val disposableList = mutableListOf<Disposable>() |
| | | |
| | | @SuppressLint("SourceLockedOrientationActivity") |
| | | override fun onCreate(savedInstanceState: Bundle?) { |
| | | super.onCreate(savedInstanceState) |
| | | try { |
| | | requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT |
| | | } catch (e: Exception) { |
| | | e.printStackTrace() |
| | | } |
| | | setContentView(getLayoutId()) |
| | | rootView = findViewById<ViewGroup>(android.R.id.content).getChildAt(0) as ViewGroup |
| | | } |
| | |
| | | it.dispose() |
| | | } |
| | | } |
| | | Glide.with(applicationContext).pauseRequests() |
| | | super.onDestroy() |
| | | } |
| | | |