Merge branch 'soru/fix-no-screenshot' into 'main'

fix: Allow screenshots again

See merge request famedly/fluffychat!385
This commit is contained in:
Krille Fear 2021-02-21 11:22:48 +00:00
commit 98c0f94d35

View File

@ -11,10 +11,6 @@ import android.view.WindowManager
class MainActivity : FlutterActivity() { class MainActivity : FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
if (!BuildConfig.DEBUG) {
window.setFlags(WindowManager.LayoutParams.FLAG_SECURE,
WindowManager.LayoutParams.FLAG_SECURE)
}
}; };
override fun provideFlutterEngine(context: Context): FlutterEngine? { override fun provideFlutterEngine(context: Context): FlutterEngine? {