Skip to content

Commit

Permalink
fixed readme
Browse files Browse the repository at this point in the history
  • Loading branch information
p32929 committed Jul 7, 2019
1 parent 11ce95b commit eb8da02
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ dependencies {
## Usage
Steps to follow:
* Extend all ``Activities`` by ``LockscreenHandler``
* Add ```EasyLock.checkPassword(this);``` in your ```MainActivity``` (or whichever activity starts at first)
* Add ```EasyLock.checkPassword(this);``` in your ```MainActivity```'s ```onCreate``` method (or whichever activity starts at first)

After that you can:
* Set password
* Set background color
* Check password
* Change password
* Disable password
Expand All @@ -46,7 +47,7 @@ public class MainActivity extends LockscreenHandler {
}
```

Step 2: Add ```EasyLock.checkPassword(this);``` in your ```MainActivity``` (or whichever activity starts at first) like this:
Step 2: Add ```EasyLock.checkPassword(this);``` in your ```MainActivity```'s ```onCreate``` method (or whichever activity starts at first) like this:

```
@Override
Expand All @@ -60,14 +61,11 @@ Step 2: Add ```EasyLock.checkPassword(this);``` in your ```MainActivity``` (or w

## Set, Check, Change, Disable Password:
* To set a password, call ```EasyLock.setPassword();```
* To set background color, call ```EasyLock.setBackgroundColor();```
* To check password, call ```EasyLock.checkPassword();```
* To change password, call ```EasyLock.changePassword();```
* To disable password, call ```EasyLock.disablePassword();```

```setPassword```, ```changePassword``` & ```disablePassword``` needs two parameters:
1st parameter is the ```Context``` & the
2nd parameter is the ```Activity class``` to go after finising setting, changing or disabling password...

Check out the app in the repository for more info :)
Enjoy...

Expand Down

0 comments on commit eb8da02

Please sign in to comment.