Skip to content

Commit

Permalink
news: cleanup NewsFragment (fixes #2607) (#2608)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Oct 17, 2023
1 parent 7f5aa26 commit c82950e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 21
targetSdkVersion 34
versionCode 1099
versionName "0.10.99"
versionCode 1100
versionName "0.11.0"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,17 @@
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;

import com.google.android.material.textfield.TextInputLayout;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;

import org.ole.planet.myplanet.R;
import org.ole.planet.myplanet.base.BaseNewsFragment;
import org.ole.planet.myplanet.databinding.FragmentFeedbackBinding;
import org.ole.planet.myplanet.databinding.FragmentNewsBinding;
import org.ole.planet.myplanet.datamanager.DatabaseService;
import org.ole.planet.myplanet.model.RealmMyLibrary;
Expand All @@ -46,29 +40,13 @@

public class NewsFragment extends BaseNewsFragment {
private FragmentNewsBinding fragmentNewsBinding;
// RecyclerView rvNews;
// EditText etMessage;
// TextInputLayout tlMessage;
// Button btnSubmit, btnAddImage, btnAddStory;
// LinearLayout llAddNews;
RealmUserModel user;
// TextView tvMessage;

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
fragmentNewsBinding = FragmentNewsBinding.inflate(inflater, container, false);
// View v = inflater.inflate(R.layout.fragment_news, container, false);
// rvNews = v.findViewById(R.id.rv_news);
// etMessage = v.findViewById(R.id.et_message);
// tlMessage = v.findViewById(R.id.tl_message);
// btnSubmit = v.findViewById(R.id.btn_submit);
// tvMessage = v.findViewById(R.id.tv_message);
// llImage = v.findViewById(R.id.ll_image);
llImage = fragmentNewsBinding.llImages;
// llAddNews = v.findViewById(R.id.ll_add_news);
// btnAddStory = v.findViewById(R.id.btn_add_story);
// btnAddImage = v.findViewById(R.id.add_news_image);
mRealm = new DatabaseService(getActivity()).getRealmInstance();
user = new UserProfileDbHandler(getActivity()).getUserModel();
KeyboardUtils.setupUI(fragmentNewsBinding.newsFragmentParentLayout, getActivity());
Expand Down

0 comments on commit c82950e

Please sign in to comment.