Skip to content

Commit eb8da02

Browse files
committed
fixed readme
1 parent 11ce95b commit eb8da02

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ dependencies {
2929
## Usage
3030
Steps to follow:
3131
* Extend all ``Activities`` by ``LockscreenHandler``
32-
* Add ```EasyLock.checkPassword(this);``` in your ```MainActivity``` (or whichever activity starts at first)
32+
* Add ```EasyLock.checkPassword(this);``` in your ```MainActivity```'s ```onCreate``` method (or whichever activity starts at first)
3333

3434
After that you can:
3535
* Set password
36+
* Set background color
3637
* Check password
3738
* Change password
3839
* Disable password
@@ -46,7 +47,7 @@ public class MainActivity extends LockscreenHandler {
4647
}
4748
```
4849

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

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

6162
## Set, Check, Change, Disable Password:
6263
* To set a password, call ```EasyLock.setPassword();```
64+
* To set background color, call ```EasyLock.setBackgroundColor();```
6365
* To check password, call ```EasyLock.checkPassword();```
6466
* To change password, call ```EasyLock.changePassword();```
6567
* To disable password, call ```EasyLock.disablePassword();```
6668

67-
```setPassword```, ```changePassword``` & ```disablePassword``` needs two parameters:
68-
1st parameter is the ```Context``` & the
69-
2nd parameter is the ```Activity class``` to go after finising setting, changing or disabling password...
70-
7169
Check out the app in the repository for more info :)
7270
Enjoy...
7371

0 commit comments

Comments
 (0)