content: package com.fadcam.ui;
  
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.ImageView;
  import android.widget.TextView;
  import android.widget.Toast;
  
  import androidx.annotation.NonNull;
  import androidx.annotation.Nullable;
  import androidx.fragment.app.Fragment;
  
  import com.fadcam.R;
  import com.fadcam.Utils;
  import com.google.android.material.appbar.MaterialToolbar;
  
  public class RemoteFragment extends BaseFragment {
      @Nullable
      @Override
      public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.fragment_remote, container, false);
          return view;
      }
  
      @Override
      public void onResume() {
          super.onResume();
          Toast.makeText(requireContext(), R.string.remote_toast_coming_soon, Toast.LENGTH_SHORT).show();
  
      }
  
      @Override
      public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
          super.onViewCreated(view, savedInstanceState);
          MaterialToolbar toolbar = view.findViewById(R.id.topAppBar);
          if (toolbar != null) {
              int colorTopBar = resolveThemeColor(R.attr.colorTopBar);
              toolbar.setBackgroundColor(colorTopBar);
          }
      }
  
      private int resolveThemeColor(int attr) {
          android.util.TypedValue typedValue = new android.util.TypedValue();
          requireContext().getTheme().resolveAttribute(attr, typedValue, true);
          return typedValue.data;
      }
  }
  