Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news-android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid-Development <david-dev@live.de>2020-09-12 12:42:12 +0300
committerDavid Luhmer <david-dev@live.de>2020-09-12 12:42:12 +0300
commitba91c7773fed7c4cf21d669b01934a5bdb4b7ec4 (patch)
tree1c6c330a4d2e30ff48a138ec37ecd8dc182a5135 /News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java
parent822fad8419c3a956aaecab3f8a29ba4dae409578 (diff)
remove dup items from kebab menu when floating menu is active / refactoring
Signed-off-by: David Luhmer <david-dev@live.de>
Diffstat (limited to 'News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java')
-rw-r--r--News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java41
1 files changed, 19 insertions, 22 deletions
diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java
index 4a625ed5..69b0802d 100644
--- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java
+++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListActivity.java
@@ -42,6 +42,23 @@ import android.view.View;
import android.widget.SearchView;
import android.widget.Toast;
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.annotation.VisibleForTesting;
+import androidx.appcompat.app.ActionBarDrawerToggle;
+import androidx.appcompat.app.AlertDialog;
+import androidx.appcompat.widget.Toolbar;
+import androidx.core.app.ActivityCompat;
+import androidx.core.view.GravityCompat;
+import androidx.customview.widget.ViewDragHelper;
+import androidx.drawerlayout.widget.DrawerLayout;
+import androidx.fragment.app.DialogFragment;
+import androidx.fragment.app.Fragment;
+import androidx.fragment.app.FragmentManager;
+import androidx.fragment.app.FragmentTransaction;
+import androidx.preference.PreferenceManager;
+import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
+
import com.google.android.material.snackbar.Snackbar;
import com.nextcloud.android.sso.AccountImporter;
import com.nextcloud.android.sso.api.NextcloudAPI;
@@ -68,22 +85,6 @@ import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import javax.inject.Named;
-import androidx.annotation.NonNull;
-import androidx.annotation.Nullable;
-import androidx.annotation.VisibleForTesting;
-import androidx.appcompat.app.ActionBarDrawerToggle;
-import androidx.appcompat.app.AlertDialog;
-import androidx.appcompat.widget.Toolbar;
-import androidx.core.app.ActivityCompat;
-import androidx.core.view.GravityCompat;
-import androidx.customview.widget.ViewDragHelper;
-import androidx.drawerlayout.widget.DrawerLayout;
-import androidx.fragment.app.DialogFragment;
-import androidx.fragment.app.Fragment;
-import androidx.fragment.app.FragmentManager;
-import androidx.fragment.app.FragmentTransaction;
-import androidx.preference.PreferenceManager;
-import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import de.luhmer.owncloudnewsreader.ListView.SubscriptionExpandableListAdapter;
@@ -135,14 +136,11 @@ public class NewsReaderListActivity extends PodcastFragmentActivity implements
private static final String TAG = NewsReaderListActivity.class.getCanonicalName();
- public static final String FOLDER_ID = "FOLDER_ID";
- public static final String FEED_ID = "FEED_ID";
public static final String ITEM_ID = "ITEM_ID";
- public static final String TITEL = "TITEL";
+ public static final String TITLE = "TITLE";
public static HashSet<Long> stayUnreadItems = new HashSet<>();
- private static MenuItem menuItemUpdater;
private static MenuItem menuItemDownloadMoreItems;
protected @BindView(R.id.toolbar) Toolbar toolbar;
@@ -703,7 +701,6 @@ public class NewsReaderListActivity extends PodcastFragmentActivity implements
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.news_reader, menu);
- menuItemUpdater = menu.findItem(R.id.menu_update);
menuItemDownloadMoreItems = menu.findItem(R.id.menu_downloadMoreItems);
menuItemDownloadMoreItems.setEnabled(false);
@@ -1062,7 +1059,7 @@ public class NewsReaderListActivity extends PodcastFragmentActivity implements
Intent intentNewsDetailAct = new Intent(this, NewsDetailActivity.class);
intentNewsDetailAct.putExtra(NewsReaderListActivity.ITEM_ID, position);
- intentNewsDetailAct.putExtra(NewsReaderListActivity.TITEL, getNewsReaderDetailFragment().getTitel());
+ intentNewsDetailAct.putExtra(NewsReaderListActivity.TITLE, getNewsReaderDetailFragment().getTitel());
startActivityForResult(intentNewsDetailAct, Activity.RESULT_CANCELED);
}
}