Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
parity-signer
Commits
1d442543
Commit
1d442543
authored
Aug 02, 2019
by
Hanwen Cheng
Committed by
Thibaut Sardan
Aug 02, 2019
Browse files
fix: enable screenshot in dev mode (#300)
parent
41ef1040
Pipeline
#45346
failed with stage
in 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
android/app/build.gradle
View file @
1d442543
...
...
@@ -143,9 +143,13 @@ android {
}
buildTypes
{
release
{
applicationIdSuffix
"release"
minifyEnabled
enableProguardInReleaseBuilds
proguardFiles
getDefaultProguardFile
(
"proguard-android.txt"
),
"proguard-rules.pro"
}
debug
{
applicationIdSuffix
"dev"
}
}
// applicationVariants are e.g. debug, release
applicationVariants
.
all
{
variant
->
...
...
android/app/src/main/java/io/parity/signer/MainActivity.java
View file @
1d442543
...
...
@@ -22,8 +22,11 @@ public class MainActivity extends ReactActivity {
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
getWindow
().
setFlags
(
WindowManager
.
LayoutParams
.
FLAG_SECURE
,
WindowManager
.
LayoutParams
.
FLAG_SECURE
);
if
(!
BuildConfig
.
DEBUG
)
{
getWindow
().
setFlags
(
WindowManager
.
LayoutParams
.
FLAG_SECURE
,
WindowManager
.
LayoutParams
.
FLAG_SECURE
);
}
}
@Override
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment