mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-16 02:38:47 +00:00
Fixing merge bugs
This commit is contained in:
parent
7c9f5cbd5e
commit
06dd554691
@ -208,24 +208,6 @@ public class MainActivity extends AppCompatActivity implements CreateListDialogF
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClickSignout(MenuItem m) {
|
|
||||||
m.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
|
||||||
@Override
|
|
||||||
public boolean onMenuItemClick(MenuItem item) {
|
|
||||||
try {
|
|
||||||
am.signOutUser();
|
|
||||||
Intent intent = new Intent(MainActivity.this, com.example.listify.ui.LoginPage.class);
|
|
||||||
startActivity(intent);
|
|
||||||
finish();
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Log.i("Authentication", e.toString());
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendNewListName(String name) {
|
public void sendNewListName(String name) {
|
||||||
Properties configs = new Properties();
|
Properties configs = new Properties();
|
||||||
|
|||||||
@ -340,15 +340,24 @@ public class SearchResults extends AppCompatActivity implements FilterDialogFrag
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reset selected stores on search so that every store is selected
|
||||||
|
this.selectedStores.clear();
|
||||||
|
this.selectedStores.addAll(stores);
|
||||||
|
|
||||||
// Add all results to the sorted list
|
// Add all results to the sorted list
|
||||||
resultsProductListSorted.addAll(resultsProductList);
|
resultsProductListSorted.addAll(resultsProductList);
|
||||||
|
|
||||||
// Filtering should only be allowed if there are items in the results
|
// Filtering should only be allowed if there are items in the results
|
||||||
if (resultsProductList.isEmpty()) {
|
runOnUiThread(new Runnable() {
|
||||||
filterItem.setEnabled(false);
|
@Override
|
||||||
} else {
|
public void run() {
|
||||||
filterItem.setEnabled(true);
|
if (resultsProductList.isEmpty()) {
|
||||||
}
|
filterItem.setEnabled(false);
|
||||||
|
} else {
|
||||||
|
filterItem.setEnabled(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// Apply selected sorting to the list
|
// Apply selected sorting to the list
|
||||||
sortResults();
|
sortResults();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user