diff --git a/app/src/main/java/app/fedilab/fedilabtube/MainActivity.java b/app/src/main/java/app/fedilab/fedilabtube/MainActivity.java index 49b5abc..73c8462 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/MainActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/MainActivity.java @@ -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); diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index eb561aa..ff9395d 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -44,7 +44,7 @@ app:layout_scrollFlags="scroll|enterAlways" android:fitsSystemWindows="true" > - + android:layout_marginEnd="5dp" + app:tint="?attr/colorAccent" />