Fix a visibility issue in osm card
This commit is contained in:
parent
db71e28e67
commit
6688ad3b91
|
@ -220,7 +220,6 @@ public class MainActivity extends AppCompatActivity {
|
||||||
SharedPreferences.Editor editor = sharedpreferences.edit();
|
SharedPreferences.Editor editor = sharedpreferences.edit();
|
||||||
editor.putBoolean(SET_OSM_ENABLED, isChecked);
|
editor.putBoolean(SET_OSM_ENABLED, isChecked);
|
||||||
editor.apply();
|
editor.apply();
|
||||||
osm_current_group.setVisibility(isChecked ? View.VISIBLE : View.GONE);
|
|
||||||
osm_custom_group.setVisibility(View.GONE);
|
osm_custom_group.setVisibility(View.GONE);
|
||||||
enable_geo_uris.setVisibility(isChecked ? View.VISIBLE : View.GONE);
|
enable_geo_uris.setVisibility(isChecked ? View.VISIBLE : View.GONE);
|
||||||
expand_instance_osm.setRotation(0);
|
expand_instance_osm.setRotation(0);
|
||||||
|
@ -232,6 +231,8 @@ public class MainActivity extends AppCompatActivity {
|
||||||
} else {
|
} else {
|
||||||
osm_current_group.setVisibility(View.VISIBLE);
|
osm_current_group.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
osm_current_group.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -330,8 +331,10 @@ public class MainActivity extends AppCompatActivity {
|
||||||
if (geouri_enabled) {
|
if (geouri_enabled) {
|
||||||
osm_current_group.setVisibility(View.GONE);
|
osm_current_group.setVisibility(View.GONE);
|
||||||
osm_custom_group.setVisibility(View.GONE);
|
osm_custom_group.setVisibility(View.GONE);
|
||||||
} else {
|
} else if (osm_enabled){
|
||||||
osm_current_group.setVisibility(View.VISIBLE);
|
osm_current_group.setVisibility(View.VISIBLE);
|
||||||
|
} else {
|
||||||
|
osm_custom_group.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
save_instance_nitter.setOnClickListener(v -> {
|
save_instance_nitter.setOnClickListener(v -> {
|
||||||
|
|
Loading…
Reference in New Issue