Skip to content

Commit

Permalink
Bugfixes, permission to install updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
mopsalarm committed Aug 26, 2017
1 parent 8706029 commit 8477dcd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
<uses-permission
android:name="android.permission.READ_PHONE_STATE"
tools:node="remove"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class StatisticsActivity : BaseAppCompatActivity("StatisticsActivity") {

return listOf(
CircleChartView.Value(summary.up, getColorCompat(R.color.stats_up)),
CircleChartView.Value(summary.down, getColorCompat(R.color.stats_down)),
CircleChartView.Value(-summary.down, getColorCompat(R.color.stats_down)),
CircleChartView.Value(summary.fav, getColorCompat(R.color.stats_fav)))
}

Expand Down
10 changes: 0 additions & 10 deletions app/src/main/java/com/pr0gramm/app/ui/views/CircleChartView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,6 @@ class CircleChartView : AspectLayout {

currentAngle += angle + angleStep
}

// paint inner circle

// val circleRadius = boundsArc.width() / 2 - 3f * lineWidth
// if (circleRadius > 1) {
// // draw middle circle
// paint.style = Paint.Style.FILL
// paint.color = 0xff333333L.toInt()
// canvas.drawCircle(boundsArc.centerX(), boundsArc.centerY(), circleRadius, paint)
// }
}
}

Expand Down

0 comments on commit 8477dcd

Please sign in to comment.