]> git.ktnx.net Git - mobile-ledger.git/commitdiff
use library layout inflation for the profile details fragment
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 17 May 2020 19:39:32 +0000 (22:39 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 17 May 2020 19:39:32 +0000 (22:39 +0300)
NIH--

app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java

index 68758402379ee5af316be287e0041861a2514618..6ead2af668029934d22046ced859dc746df2f361 100644 (file)
@@ -23,12 +23,10 @@ import android.graphics.Typeface;
 import android.os.Bundle;
 import android.text.Editable;
 import android.text.TextWatcher;
-import android.view.LayoutInflater;
 import android.view.Menu;
 import android.view.MenuInflater;
 import android.view.MenuItem;
 import android.view.View;
-import android.view.ViewGroup;
 import android.widget.LinearLayout;
 import android.widget.PopupMenu;
 import android.widget.Switch;
@@ -109,6 +107,7 @@ public class ProfileDetailFragment extends Fragment {
      * fragment (e.g. upon screen orientation changes).
      */
     public ProfileDetailFragment() {
+        super(R.layout.profile_detail);
     }
     @Override
     public void onCreateOptionsMenu(@NotNull Menu menu, @NotNull MenuInflater inflater) {
@@ -460,12 +459,6 @@ public class ProfileDetailFragment extends Fragment {
         if (activity != null)
             activity.finish();
     }
-    @Override
-    public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
-                             Bundle savedInstanceState) {
-
-        return inflater.inflate(R.layout.profile_detail, container, false);
-    }
     private boolean checkUrlValidity() {
         boolean valid = true;