Change button

This commit is contained in:
Thomas 2020-11-11 15:47:42 +01:00
parent 860edec2e6
commit 2bf929986e
2 changed files with 5 additions and 4 deletions

View File

@ -28,7 +28,7 @@ import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
@ -420,7 +420,7 @@ public class MainActivity extends AppCompatActivity {
MenuItem accountItem = menu.findItem(R.id.action_account);
Toolbar toolbar = findViewById(R.id.toolbar);
ImageButton instances = toolbar.findViewById(R.id.instances);
ImageView instances = toolbar.findViewById(R.id.instances);
if (BuildConfig.full_instances && ((Helper.isLoggedIn(MainActivity.this) && typeOfConnection == NORMAL) || typeOfConnection == SURFING)) {
instances.setVisibility(View.VISIBLE);
instances.setOnClickListener(null);

View File

@ -44,7 +44,7 @@
app:layout_scrollFlags="scroll|enterAlways"
android:fitsSystemWindows="true"
>
<ImageButton
<ImageView
android:id="@+id/instances"
android:visibility="gone"
android:layout_width="wrap_content"
@ -52,7 +52,8 @@
android:src="@drawable/ic_baseline_public_24"
android:layout_gravity="start"
android:contentDescription="@string/instance_choice"
/>
android:layout_marginEnd="5dp"
app:tint="?attr/colorAccent" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"