Infinite 3 лет назад
Родитель
Сommit
e32f64684c

+ 1 - 0
app/src/main/java/club/thepenguins/android/activities/PostActivity.java

@@ -234,6 +234,7 @@ public class PostActivity extends AppCompatActivity {
 
                     System.out.println(response.body().get(i).getContent());
                 }
+
                 commentAdapter.notifyDataSetChanged();
                 if (comments.size() != 0) {
                     textView.setText("Comments:");

+ 9 - 1
app/src/main/java/club/thepenguins/android/fragments/AboutFragment.java

@@ -7,8 +7,12 @@ import androidx.fragment.app.Fragment;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
+import android.widget.Toast;
 
 import club.thepenguins.android.R;
+import es.dmoral.toasty.Toasty;
+
+import static club.thepenguins.android.utils.Constants.noImplemented;
 
 public class AboutFragment extends Fragment {
 
@@ -45,6 +49,10 @@ public class AboutFragment extends Fragment {
     public View onCreateView(LayoutInflater inflater, ViewGroup container,
                              Bundle savedInstanceState) {
         // Inflate the layout for this fragment
-        return inflater.inflate(R.layout.fragment_about, container, false);
+
+        View rootView = inflater.inflate(R.layout.fragment_about, container, false);
+
+        Toasty.info(rootView.getContext(), noImplemented, Toast.LENGTH_LONG).show();
+        return rootView;
     }
 }

+ 0 - 4
app/src/main/java/club/thepenguins/android/fragments/LinuxFragment.java

@@ -8,7 +8,6 @@ import androidx.recyclerview.widget.LinearLayoutManager;
 import androidx.recyclerview.widget.RecyclerView;
 import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
 
-import android.util.Log;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
@@ -83,9 +82,6 @@ public class LinuxFragment extends Fragment {
                              Bundle savedInstanceState) {
         View rootView = inflater.inflate(R.layout.fragment_linux, container, false);
 
-        getActivity().setTitle("Choose Fragment");
-
-
         recyclerView = rootView.findViewById(R.id.recycler_view);
         loader = rootView.findViewById(R.id.shimmer_view_container);
 

+ 1 - 0
app/src/main/java/club/thepenguins/android/utils/Constants.java

@@ -4,5 +4,6 @@ public interface Constants {
 
     String BaseUrl = "https://thepenguins.club/";
     String noInternet = "Please check your internet connection & try again!";
+    String noImplemented = "This page is not implemented yet!";
 
 }