Skip to content

Commit

Permalink
Bump to 1.3.3 + init temp prefs in main activity
Browse files Browse the repository at this point in the history
Signed-off-by: enricocid <[email protected]>
  • Loading branch information
enricocid committed Aug 10, 2019
1 parent dbe78bb commit 0962f01
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@



###### Current version: [(15) 1.3.2](https://github.com/enricocid/VectorifyDaHome/releases/tag/v1.3.2)
###### Current version: [(16) 1.3.3](https://github.com/enricocid/VectorifyDaHome/releases/tag/v1.3.3)
###### Based on the project [Potate da home](https://github.com/enricocid/PotateDaHome)

![Screenshots](https://raw.githubusercontent.com/enricocid/VectorifyDaHome/master/vdh3.gif)
Expand Down
4 changes: 2 additions & 2 deletions project/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "com.iven.iconify"
minSdkVersion 21
targetSdkVersion 29
versionCode 15
versionName "1.3.2.1"
versionCode 16
versionName "1.3.3"
}

// Configure only for each module that uses Java 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ class VectorifyActivity : AppCompatActivity() {
mVectorColor = mVectorifyPreferences.vectorColor
mVector = mVectorifyPreferences.vector

//init temp preferences
mTempPreferences.tempBackgroundColor = mBackgroundColor
mTempPreferences.tempVectorColor = mVectorColor
mTempPreferences.tempVector = mVector
mTempPreferences.isBackgroundAccentSet = mVectorifyPreferences.isBackgroundAccented
mTempPreferences.isVectorAccentSet = mVectorifyPreferences.isVectorAccented
mTempPreferences.tempScale = mVectorifyPreferences.scale

//get system accent grabbers
mBackgroundSystemAccentGrabber = background_system_accent
mVectorSystemAccentGrabber = vector_system_accent
Expand Down
7 changes: 0 additions & 7 deletions project/app/src/main/java/com/iven/vectorify/VectorifyApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ class VectorifyApp : Application() {
prefs = VectorifyPreferences(applicationContext)
tempPrefs = TempPreferences()

tempPrefs.tempBackgroundColor = prefs.backgroundColor
tempPrefs.tempVectorColor = prefs.vectorColor
tempPrefs.tempVector = prefs.vector
tempPrefs.isBackgroundAccentSet = prefs.isBackgroundAccented
tempPrefs.isVectorAccentSet = prefs.isVectorAccented
tempPrefs.tempScale = prefs.scale

//retrieve display specifications
val window = applicationContext.getSystemService(Context.WINDOW_SERVICE) as WindowManager
val d = DisplayMetrics()
Expand Down

0 comments on commit 0962f01

Please sign in to comment.