Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Merge pull request #30 from raphaelbussa/fix-crash-on-preview
Browse files Browse the repository at this point in the history
Fix PreviewActivity crash on Android 11
  • Loading branch information
enricocid authored Jan 8, 2021
2 parents 7b36597 + 4315d6f commit cc07fb6
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions project/app/src/main/java/com/iven/vectorify/ui/PreviewActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,13 @@ class PreviewActivity : AppCompatActivity(), LoaderManager.LoaderCallbacks<Uri?>
finishAndRemoveTask()
}

override fun onCreateView(
parent: View?,
name: String,
context: Context,
attrs: AttributeSet
): View? {
//set immersive mode
hideSystemUI()
return super.onCreateView(parent, name, context, attrs)
}

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

mPreviewActivityBinding = PreviewActivityBinding.inflate(layoutInflater)
setContentView(mPreviewActivityBinding.root)
//set immersive mode
hideSystemUI()

intent?.extras?.let { ext ->
mTempBackgroundColor = ext.getInt(TEMP_BACKGROUND_COLOR)
Expand Down

0 comments on commit cc07fb6

Please sign in to comment.