Repository navigation
Developer menu on version click #2439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -257,7 +257,7 @@ protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | ||
|
|
||
| /// protection against screen recording | ||
| if (!BuildConfig.DEBUG) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove |
||
| if (!MainApp.isDeveloper()) { | ||
| getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE); | ||
| } // else, let it go, or taking screenshots & testing will not be possible | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,6 @@ | |
| import android.view.WindowManager; | ||
|
|
||
| import com.owncloud.android.MainApp; | ||
| import com.owncloud.android.lib.BuildConfig; | ||
| import com.owncloud.android.ui.activity.PassCodeActivity; | ||
|
|
||
| import java.util.HashSet; | ||
|
|
@@ -40,7 +39,7 @@ public class PassCodeManager { | |
| private static final Set<Class> sExemptOfPasscodeActivites; | ||
|
|
||
| static { | ||
| sExemptOfPasscodeActivites = new HashSet<Class>(); | ||
| sExemptOfPasscodeActivites = new HashSet<>(); | ||
| sExemptOfPasscodeActivites.add(PassCodeActivity.class); | ||
| // other activities may be exempted, if needed | ||
| } | ||
|
|
@@ -57,14 +56,14 @@ public static PassCodeManager getPassCodeManager() { | |
| return mPassCodeManagerInstance; | ||
| } | ||
|
|
||
| private Long mTimestamp = 0l; | ||
| private Long mTimestamp = 0L; | ||
| private int mVisibleActivitiesCounter = 0; | ||
|
|
||
| protected PassCodeManager() { | ||
| } | ||
|
|
||
| public void onActivityCreated(Activity activity) { | ||
| if (!BuildConfig.DEBUG) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same and in the rest of the classes where you have removed it
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's what I mean, if is not needed anymore, please delete the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, this I missunderstood |
||
| if (!MainApp.isDeveloper()) { | ||
| if (isPassCodeEnabled()) { | ||
| activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE); | ||
| } else { | ||
|
|
@@ -133,7 +132,7 @@ public boolean isPassCodeEnabled() { | |
| /** | ||
| * This can be used for example for onActivityResult, where you don't want to re authenticate | ||
| * again. | ||
| * | ||
| * <p> | ||
| * USE WITH CARE | ||
| */ | ||
| public void bayPassUnlockOnce() { | ||
|
|
||

Uh oh!
There was an error while loading. Please reload this page.