Skip to content

Commit

Permalink
Removed a few unused things from sync
Browse files Browse the repository at this point in the history
  • Loading branch information
maltaisn committed Jul 2, 2020
1 parent d6b57e9 commit 3b4e59c
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 32 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## v1.1.0
- Removed synchronization feature.

### v1.0.2
- Fixed crash when navigating to two destination at the same time.

### v1.0.1
Expand Down
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ dependencies {
implementation "androidx.recyclerview:recyclerview:$recyclerViewVersion"
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
implementation "androidx.preference:preference:$preferenceVersion"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$swipeRefreshVersion"
implementation "com.google.android.material:material:$materialVersion"
implementation "com.google.android.gms:play-services-oss-licenses:$ossLicensesVersion"

Expand Down
19 changes: 0 additions & 19 deletions app/src/main/kotlin/com/maltaisn/notes/extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
package com.maltaisn.notes

import android.content.Context
import android.text.method.PasswordTransformationMethod
import android.view.View
import android.view.inputmethod.InputMethodManager
import androidx.navigation.NavController
import androidx.navigation.NavDirections
import com.google.android.material.textfield.TextInputLayout


fun NavController.navigateSafe(directions: NavDirections) {
Expand Down Expand Up @@ -51,20 +49,3 @@ fun View.showKeyboard() {
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
imm.showSoftInput(this.findFocus(), 0)
}

/**
* [TextInputLayout] doesn't really allow customizing the end icon click listener so this
* is a copy of the click listener used internally, but this one also calls [listener].
*/
fun TextInputLayout.setCustomEndIconOnClickListener(listener: (View) -> Unit) =
this.setEndIconOnClickListener { view ->
// Store the current cursor position
val edt = this.editText ?: return@setEndIconOnClickListener
val oldSelection = edt.selectionEnd
val hidePassword = edt.transformationMethod !is PasswordTransformationMethod
edt.transformationMethod = PasswordTransformationMethod.getInstance().takeIf { hidePassword }
if (oldSelection >= 0) {
edt.setSelection(oldSelection)
}
listener(view)
}
8 changes: 0 additions & 8 deletions firebase.json

This file was deleted.

4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ preferenceVersion=1.1.1
swipeRefreshVersion=1.0.0
roomVersion=2.2.5
materialVersion=1.3.0-alpha01
navVersion=2.2.2
navVersion=2.3.0
lifecycleVersion=2.2.0
ossLicensesVersion=17.0.0

# Other
daggerVersion=2.27
daggerVersion=2.28
assistedInjectVersion=0.5.2
leakCanaryVersion=2.2

Expand Down

0 comments on commit 3b4e59c

Please sign in to comment.