Change button
This commit is contained in:
parent
860edec2e6
commit
2bf929986e
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue