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.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ImageButton;
|
import android.widget.ImageView;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
@ -420,7 +420,7 @@ public class MainActivity extends AppCompatActivity {
|
||||||
MenuItem accountItem = menu.findItem(R.id.action_account);
|
MenuItem accountItem = menu.findItem(R.id.action_account);
|
||||||
|
|
||||||
Toolbar toolbar = findViewById(R.id.toolbar);
|
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)) {
|
if (BuildConfig.full_instances && ((Helper.isLoggedIn(MainActivity.this) && typeOfConnection == NORMAL) || typeOfConnection == SURFING)) {
|
||||||
instances.setVisibility(View.VISIBLE);
|
instances.setVisibility(View.VISIBLE);
|
||||||
instances.setOnClickListener(null);
|
instances.setOnClickListener(null);
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
app:layout_scrollFlags="scroll|enterAlways"
|
app:layout_scrollFlags="scroll|enterAlways"
|
||||||
android:fitsSystemWindows="true"
|
android:fitsSystemWindows="true"
|
||||||
>
|
>
|
||||||
<ImageButton
|
<ImageView
|
||||||
android:id="@+id/instances"
|
android:id="@+id/instances"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -52,7 +52,8 @@
|
||||||
android:src="@drawable/ic_baseline_public_24"
|
android:src="@drawable/ic_baseline_public_24"
|
||||||
android:layout_gravity="start"
|
android:layout_gravity="start"
|
||||||
android:contentDescription="@string/instance_choice"
|
android:contentDescription="@string/instance_choice"
|
||||||
/>
|
android:layout_marginEnd="5dp"
|
||||||
|
app:tint="?attr/colorAccent" />
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
Loading…
Reference in New Issue