File tree Expand file tree Collapse file tree 6 files changed +18
-20
lines changed
java/ro/code4/monitorizarevot/ui/main Expand file tree Collapse file tree 6 files changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ android {
24
24
applicationId " ro.code4.monitorizarevot"
25
25
minSdkVersion 21
26
26
targetSdkVersion 29
27
- versionCode 1
28
- versionName " 1.0 "
27
+ versionCode 42
28
+ versionName " 2.1.1 "
29
29
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
30
30
31
31
javaCompileOptions {
Original file line number Diff line number Diff line change @@ -107,15 +107,15 @@ class MainActivity : BaseActivity<MainViewModel>() {
107
107
showVisitedPollingStations()
108
108
true
109
109
}
110
+ R .id.nav_logout -> {
111
+ viewModel.logout()
112
+ true
113
+ }
110
114
else -> false
111
115
}
112
116
}
113
117
}
114
118
115
- navLogout.setOnClickListener {
116
- viewModel.logout()
117
- }
118
-
119
119
viewModel.onLogoutLiveData().observe(this , Observer {
120
120
startActivityWithoutTrace(LoginActivity ::class .java)
121
121
})
Original file line number Diff line number Diff line change 23
23
app : headerLayout =" @layout/nav_header_main"
24
24
app : menu =" @menu/main_menu" >
25
25
26
- <TextView
27
- android : id =" @+id/navLogout"
28
- style =" @style/NavigationMenuItem"
29
- android : layout_width =" match_parent"
30
- android : layout_marginStart =" @dimen/margin"
31
- android : layout_marginEnd =" @dimen/margin"
32
- android : drawableStart =" @drawable/ic_menu_logout"
33
- android : drawablePadding =" @dimen/margin"
34
- android : layout_height =" wrap_content"
35
- android : layout_gravity =" bottom"
36
- android : text =" @string/menu_logout" />
37
-
38
26
</com .google.android.material.navigation.NavigationView>
39
27
40
28
</androidx .drawerlayout.widget.DrawerLayout>
Original file line number Diff line number Diff line change 48
48
android : icon =" @drawable/ic_menu_guide"
49
49
android : title =" @string/menu_obs_feedback" />
50
50
51
+ <item
52
+ android : checkable =" false"
53
+ android : enabled =" false"
54
+ android : title =" " />
55
+
56
+ <item
57
+ android : id =" @+id/nav_logout"
58
+ android : icon =" @drawable/ic_menu_logout"
59
+ android : title =" @string/menu_logout" />
60
+
51
61
</group >
52
62
</menu >
Original file line number Diff line number Diff line change 1
1
apiUrl =https://api.votemonitor.org/api/v1/
2
2
guideUrl =https://fiecarevot.ro/wp-content/uploads/2020/12/Manual-observatori-FV-parlamentare2020.pdf
3
- safetyUrl =https://votromania.ro/siguranta-la-vot
3
+ safetyUrl =
4
4
observerFeedbackUrl =
5
5
organisationWebUrl =https://code4.ro/
6
6
serviceCenterPhoneNumber =0800080200
Original file line number Diff line number Diff line change 1
1
apiUrl =https://api.votemonitor.org/api/v1/
2
2
guideUrl =https://fiecarevot.ro/wp-content/uploads/2020/12/Manual-observatori-FV-parlamentare2020.pdf
3
- safetyUrl =https://votromania.ro/siguranta-la-vot
3
+ safetyUrl =
4
4
observerFeedbackUrl =
5
5
organisationWebUrl =https://code4.ro/
6
6
serviceCenterPhoneNumber =0800080200
You can’t perform that action at this time.
0 commit comments