Refine code style
This commit is contained in:
3
mobile/.gitignore
vendored
3
mobile/.gitignore
vendored
@@ -1,7 +1,6 @@
|
|||||||
/build
|
/build
|
||||||
/debug
|
/debug
|
||||||
/release
|
release/
|
||||||
/google/
|
|
||||||
|
|
||||||
# tests aren't ready yet
|
# tests aren't ready yet
|
||||||
/src/androidTest
|
/src/androidTest
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ object ServiceNotification {
|
|||||||
.setSmallIcon(R.drawable.ic_quick_settings_tile_on)
|
.setSmallIcon(R.drawable.ic_quick_settings_tile_on)
|
||||||
.setContentIntent(PendingIntent.getActivity(context, 0,
|
.setContentIntent(PendingIntent.getActivity(context, 0,
|
||||||
Intent(context, MainActivity::class.java), PendingIntent.FLAG_UPDATE_CURRENT))
|
Intent(context, MainActivity::class.java), PendingIntent.FLAG_UPDATE_CURRENT))
|
||||||
.setVisibility(Notification.VISIBILITY_PUBLIC)
|
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||||
val deviceCounts = deviceCountsMap.values.flatMap { it.entries }.sortedBy { it.key }
|
val deviceCounts = deviceCountsMap.values.flatMap { it.entries }.sortedBy { it.key }
|
||||||
return when (deviceCounts.size) {
|
return when (deviceCounts.size) {
|
||||||
0 -> builder.build()
|
0 -> builder.build()
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class ClientsFragment : Fragment(), ServiceConnection {
|
|||||||
|
|
||||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
||||||
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_repeater, container, false)
|
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_repeater, container, false)
|
||||||
binding.clients.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)
|
binding.clients.layoutManager = LinearLayoutManager(context, RecyclerView.VERTICAL, false)
|
||||||
binding.clients.itemAnimator = DefaultItemAnimator()
|
binding.clients.itemAnimator = DefaultItemAnimator()
|
||||||
binding.clients.adapter = adapter
|
binding.clients.adapter = adapter
|
||||||
binding.swipeRefresher.setColorSchemeResources(R.color.colorAccent)
|
binding.swipeRefresher.setColorSchemeResources(R.color.colorAccent)
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ class TetheringFragment : Fragment(), ServiceConnection {
|
|||||||
|
|
||||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
||||||
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_tethering, container, false)
|
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_tethering, container, false)
|
||||||
binding.interfaces.layoutManager = LinearLayoutManager(context, LinearLayoutManager.VERTICAL, false)
|
binding.interfaces.layoutManager = LinearLayoutManager(context, RecyclerView.VERTICAL, false)
|
||||||
binding.interfaces.itemAnimator = DefaultItemAnimator()
|
binding.interfaces.itemAnimator = DefaultItemAnimator()
|
||||||
binding.interfaces.adapter = adapter
|
binding.interfaces.adapter = adapter
|
||||||
adapter.update(emptyList(), emptyList(), emptyList())
|
adapter.update(emptyList(), emptyList(), emptyList())
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package be.mygod.vpnhotspot.net.wifi
|
package be.mygod.vpnhotspot.net.wifi
|
||||||
|
|
||||||
import android.net.wifi.WifiConfiguration
|
import android.net.wifi.WifiConfiguration
|
||||||
import android.os.Build
|
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import androidx.annotation.RequiresApi
|
import androidx.annotation.RequiresApi
|
||||||
import be.mygod.vpnhotspot.App.Companion.app
|
import be.mygod.vpnhotspot.App.Companion.app
|
||||||
|
|||||||
@@ -150,6 +150,7 @@
|
|||||||
android:text="@={data.oc}"
|
android:text="@={data.oc}"
|
||||||
android:inputType="number"
|
android:inputType="number"
|
||||||
android:imeOptions="actionDone"
|
android:imeOptions="actionDone"
|
||||||
|
android:importantForAutofill="no"
|
||||||
android:maxLength="3"
|
android:maxLength="3"
|
||||||
android:hint="@string/settings_service_repeater_oc_summary"/>
|
android:hint="@string/settings_service_repeater_oc_summary"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user