Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LayoutXML committed Sep 15, 2018
1 parent 1550f1a commit 950d2de
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@ public void onClick(View v) {

}

@Override
protected void onDestroy() {
super.onDestroy();
}

@Override
public void appListener(List<AppData> appDataList, Integer applicationFlags, Boolean applicationFlagsMatch, Integer uniqueIdentifier) {
if (uniqueIdentifier==0) { //Could also be: if (filterFlags == null)
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
android:layout_marginRight="24dp"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:text="Click the button to show how many activities were removed sice the last check"
android:text="Click the button to show how many activities were removed since the last check"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/guideline"
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/item_view.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/itemLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*/
public class AppList extends BroadcastReceiver{

public static IntentFilter intentFilter = new IntentFilter();
public static final IntentFilter intentFilter = new IntentFilter();

//Tasks
private static AppTask appTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public class ActivityTask extends AsyncTask<Void,Void,List<AppData>> {

private final WeakReference<ActivityListener> activitiesListenerWeakReference;
private final WeakReference<Context> contextWeakReference;
private Intent intent;
private Integer uniqueIdentifier;
private Integer flags;
private Integer activitiesFlags;
private Boolean match;
private final Intent intent;
private final Integer uniqueIdentifier;
private final Integer flags;
private final Integer activitiesFlags;
private final Boolean match;

public ActivityTask(WeakReference<Context> context, Intent intent, Integer activitiesFlags, Integer appFlags, Boolean appMatch, Integer uniqueIdentifier, WeakReference<ActivityListener> activitiesListenerWeakReference) {
this.contextWeakReference = context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ public class AppTask extends AsyncTask<Void,Void,List<AppData>> {

private final WeakReference<AppListener> allAppsListener;
private final WeakReference<Context> contextWeakReference;
private Integer flags;
private Boolean match;
private Integer uniqueIdentifier;
private final Integer flags;
private final Boolean match;
private final Integer uniqueIdentifier;

public AppTask(WeakReference<Context> context, Integer flags, Boolean match, Integer uniqueIdentifier, WeakReference<AppListener> allListener) {
this.contextWeakReference = context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ public class NewActivityTask extends AsyncTask<Void,Void,List<AppData>> {

private final WeakReference<NewActivityListener> newActivitiesListener;
private final WeakReference<Context> contextWeakReference;
private List<AppData> receivedAppList;
private Integer flags;
private Boolean match;
private Integer uniqueIdentifier;
private Intent intent;
private Integer activitiesFlags;
private final List<AppData> receivedAppList;
private final Integer flags;
private final Boolean match;
private final Integer uniqueIdentifier;
private final Intent intent;
private final Integer activitiesFlags;


public NewActivityTask(WeakReference<Context> context, List<AppData> receivedAppList, Intent intent, Integer activitiesFlags, Integer flags, Boolean match, Integer uniqueIdentifier, WeakReference<NewActivityListener> newActivitiesListener) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public class NewAppTask extends AsyncTask<Void,Void,List<AppData>>{

private final WeakReference<NewAppListener> allNewAppsListener;
private final WeakReference<Context> contextWeakReference;
private List<AppData> receivedAppList;
private Integer flags;
private Boolean match;
private Integer uniqueIdentifier;
private final List<AppData> receivedAppList;
private final Integer flags;
private final Boolean match;
private final Integer uniqueIdentifier;


public NewAppTask(WeakReference<Context> context, List<AppData> receivedAppList, Integer flags, Boolean match, Integer uniqueIdentifier, WeakReference<NewAppListener> newListener) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
public class SortTask extends AsyncTask<Void,Void,List<AppData>> {

private final WeakReference<SortListener> sortListener;
private List<AppData> appDataList;
private Integer sortBy;
private Integer inOrder;
private Integer uniqueIdentifier;
private final List<AppData> appDataList;
private final Integer sortBy;
private final Integer inOrder;
private final Integer uniqueIdentifier;

public SortTask(List<AppData> appDataList, Integer sortBy, Integer inOrder, Integer uniqueIdentifier, WeakReference<SortListener> sortListener){
this.sortListener = sortListener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ public class UninstalledActivityTask extends AsyncTask<Void,Void,List<AppData>>

private final WeakReference<UninstalledActivityListener> uninstalledActivitiesTaskWeakReference;
private final WeakReference<Context> contextWeakReference;
private List<AppData> receivedAppList;
private Integer uniqueIdentifier;
private Intent intent;
private Integer activityFlags;
private Integer applicationFlags;
private Boolean applicationFlagsMatch;
private final List<AppData> receivedAppList;
private final Integer uniqueIdentifier;
private final Intent intent;
private final Integer activityFlags;
private final Integer applicationFlags;
private final Boolean applicationFlagsMatch;


public UninstalledActivityTask(WeakReference<Context> context, List<AppData> receivedAppList, Intent intent, Integer activityFlags, Integer applicationFlags, Boolean applicationFlagsMatch, Integer uniqueIdentifier, WeakReference<UninstalledActivityListener> uninstalledListener) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public class UninstalledAppTask extends AsyncTask<Void,Void,List<AppData>>{

private final WeakReference<UninstalledAppListener> allUninstalledAppsListener;
private final WeakReference<Context> contextWeakReference;
private List<AppData> receivedAppList;
private Integer uniqueIdentifier;
private Integer applicationFlags;
private Boolean applicationFlagsMatch;
private final List<AppData> receivedAppList;
private final Integer uniqueIdentifier;
private final Integer applicationFlags;
private final Boolean applicationFlagsMatch;


public UninstalledAppTask(WeakReference<Context> context, List<AppData> receivedAppList, Integer applicationFlags, Boolean applicationFlagsMatch, Integer uniqueIdentifier, WeakReference<UninstalledAppListener> uninstalledListener) {
Expand Down

0 comments on commit 950d2de

Please sign in to comment.