Skip to content

Commit

Permalink
Merge pull request #2 from Hemant27031999/Hemant
Browse files Browse the repository at this point in the history
Updates Readme
  • Loading branch information
Hemant27031999 authored Dec 8, 2019
2 parents 3b2498a + d7b12a9 commit 64cfd21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Initialize the declared variables and call the method to add your previously sel
{YOUR BASE LAYOUT} = findViewById(R.id.{BASE_LAYOUT_ID});
sensorMgr = (SensorManager) getSystemService(SENSOR_SERVICE);
// this method reads the old theme from shared preferences and apply them
HandlingColorPicker.addPreviousValues(ll, getWindow(), Objects.requireNonNull(getSupportActionBar()), MainActivity.this);
HandlingColorPicker.addPreviousValues({YOUR BASE LAYOUT}, getWindow(), Objects.requireNonNull(getSupportActionBar()), MainActivity.this);
```
</br>
Now open the app, go to the activity, shake your phone and BOOM
Expand Down Expand Up @@ -155,7 +155,7 @@ Initialize it inside your onCreate method and call the method to add your previo
```java
{YOUR BASE LAYOUT} = findViewById(R.id.{BASE_LAYOUT_ID});
// this method reads the old theme from shared preferences and apply them
HandlingColorPicker.addPreviousValues(ll, getWindow(), Objects.requireNonNull(getSupportActionBar()), MainActivity.this);
HandlingColorPicker.addPreviousValues({YOUR BASE LAYOUT}, getWindow(), Objects.requireNonNull(getSupportActionBar()), MainActivity.this);
```

</br>
Expand Down

0 comments on commit 64cfd21

Please sign in to comment.