Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Activity ui #46

Merged
merged 9 commits into from
Jul 17, 2015
Merged

Activity ui #46

merged 9 commits into from
Jul 17, 2015

Conversation

mananwason
Copy link
Member

@creativepsyco Please review and merge

@@ -22,6 +22,8 @@
*/
public class SpeakersListAdapter extends RecyclerView.Adapter<SpeakersListAdapter.ViewHolder> {
List<Speaker> speakers;
Context context;
private int lastPosition = -1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use of this variable? and caching context again?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using the variable for the entering animation. I'll remove the context.

@mananwason
Copy link
Member Author

@creativepsyco please check now.

*/
public class SpeakersActivity extends AppCompatActivity {
SessionsAdapter sessionsAdapter;
DbSingleton dbSingleton = DbSingleton.getInstance();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DbSingleton is a singleton why do you have the need to cache it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry my bad.

@mananwason
Copy link
Member Author

@creativepsyco fixed now. Please review.

@championswimmer
Copy link
Member

@creativepsyco @mananwason Just enquiring what is the status on this.

I was thinking of working on the UI a little (making card based lists etc) so should I wait for this to merge ?

@mananwason
Copy link
Member Author

@championswimmer I have already added card based lists in the code and I think that code was merged as well. Anyways I have improved some ui for the lists as well which is not in the PR. PFA screenshots.
image
image
Though I would appreciate some suggestions @championswimmer @creativepsyco on the speaker fragment. Is the UI there fine or does it need to be more like the tracks fragment? Less margins and all?

}

@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
DbSingleton dbSingleton = DbSingleton.getInstance();

LatLng latLng = new LatLng(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you getting the details from the db singleton? I think you can pass the necessary db info as a parameter to this view?

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
finish();
return true;
case R.id.share_tracks:
//TODO: Add the real webapp links here
Intent intent = new Intent();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You already have the webapp's URL you can create one using that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did ask @championswimmer to discuss about this on gitter, so that we can add a webapp URL, which can be kept constant for all the webapps, that are deployed but I guess he forgot to answer or something.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay please create a ticket, just having a TODO doesn't fix things.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@creativepsyco
Copy link
Contributor

@mananwason still requires a bit of changes.

@mananwason
Copy link
Member Author

@creativepsyco Can we merge this ? I'll make the changes in the next PR from the other branch such that we don't have any conflicts

@creativepsyco
Copy link
Contributor

@mananwason let's get this PR fixed first. Otherwise there will be a bit more backlog work.

@mananwason
Copy link
Member Author

Sure. I'll fix this first then.

@mananwason
Copy link
Member Author

@creativepsyco Please check now. I have fixed everything

@creativepsyco
Copy link
Contributor

@mananwason there is a build failure.

This is the relevant error. The xml/searchable resource cannot be found.

APT warning(Job{title=Cruncher ic_drawer.png, latch=BooleanLatch{signaled=false}, result=false}): /home/travis/build/fossasia/open-event-android/app/src/main/res/drawable-hdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT warning(Job{title=Cruncher ic_drawer.png, latch=BooleanLatch{signaled=false}, result=false}): /home/travis/build/fossasia/open-event-android/app/src/main/res/drawable-xhdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
AAPT warning(Job{title=Cruncher ic_drawer.png, latch=BooleanLatch{signaled=false}, result=false}): /home/travis/build/fossasia/open-event-android/app/src/main/res/drawable-mdpi/ic_drawer.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:app:processFdroidDebugManifest
:app:processFdroidDebugResources Position 59:35-50 : No resource found that matches the given name (at 'resource' with value '@xml/searchable').

I believe you forgot to commit the file?

@mananwason
Copy link
Member Author

@creativepsyco I saw the error but I have committed the 2 files that are missing in this PR on https://github.com/mananwason/open-event-android/tree/details this branch.

@creativepsyco
Copy link
Contributor

well you need to place the file in this commit or remove the line for the build to pass.

@mananwason
Copy link
Member Author

Okay I'll add it.

@mananwason
Copy link
Member Author

Okay so now I have added everything but travis is giving this error. I don't understand @creativepsyco
import com.google.android.gms.maps.model.LatLng; ^ /home/travis/build/fossasia/open-event-android/app/src/main/java/org/fossasia/openevent/activities/MainActivity.java:172: error: cannot find symbol LatLng location = new LatLng( ^

@mananwason
Copy link
Member Author

@creativepsyco All fixed now. Please check and merge.

creativepsyco added a commit that referenced this pull request Jul 17, 2015
@creativepsyco creativepsyco merged commit 73bee25 into fossasia:master Jul 17, 2015
@mananwason mananwason deleted the activity_ui branch August 21, 2015 02:52
dreadpool2 pushed a commit to dreadpool2/open-event-android that referenced this pull request Jun 7, 2018
* Smooth slide-up animation of Event Card now occurs

* Smooth slide-up animation of Events now occurs
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants