Browse Source

added report issue menu item

main v0.10.3
Nareshkumar Rao 4 years ago
parent
commit
b36e0fc3df
  1. 4
      app/build.gradle
  2. BIN
      app/release/app-release.apk
  3. 4
      app/release/output-metadata.json
  4. 9
      app/src/main/java/com/nareshkumarrao/eiweblog/MainActivity.kt
  5. 2
      app/src/main/res/layout/item_article.xml
  6. 10
      app/src/main/res/menu/toolbar_menu.xml
  7. 1
      app/src/main/res/values-de/strings.xml
  8. 1
      app/src/main/res/values-en/strings.xml
  9. 1
      app/src/main/res/values/strings.xml

4
app/build.gradle

@ -11,8 +11,8 @@ android {
applicationId "com.nareshkumarrao.eiweblog"
minSdkVersion 16
targetSdkVersion 30
versionCode 6
versionName "0.10.2"
versionCode 7
versionName "0.10.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

BIN
app/release/app-release.apk

Binary file not shown.

4
app/release/output-metadata.json

@ -10,8 +10,8 @@
{
"type": "SINGLE",
"filters": [],
"versionCode": 6,
"versionName": "0.10.2",
"versionCode": 7,
"versionName": "0.10.3",
"outputFile": "app-release.apk"
}
]

9
app/src/main/java/com/nareshkumarrao/eiweblog/MainActivity.kt

@ -100,4 +100,13 @@ class MainActivity : AppCompatActivity() {
fun showGrades(item: MenuItem){
startActivity(Intent(this, GradesActivity::class.java))
}
fun showReportIssue(item: MenuItem){
startActivity(
Intent(
Intent.ACTION_VIEW,
Uri.parse("https://github.com/naresh97/ei-weblog-android/issues/new")
)
)
}
}

2
app/src/main/res/layout/item_article.xml

@ -27,7 +27,7 @@
android:layout_marginLeft="32dp"
android:layout_marginEnd="16dp"
android:layout_marginRight="16dp"
android:gravity="right|center_vertical"
android:gravity="end|center_vertical"
android:text="Prof. Max Mustermann"
android:textColor="@color/black"
app:layout_constraintEnd_toEndOf="parent"

10
app/src/main/res/menu/toolbar_menu.xml

@ -5,13 +5,17 @@
android:onClick="showNotificationSettings"
android:title="@string/notifications_title"
app:showAsAction="never" />
<item
android:onClick="showGrades"
android:title="@string/grades_title"
app:showAsAction="never" />
<item
android:onClick="showAbout"
android:title="@string/about"
app:showAsAction="never" />
<item
android:onClick="showGrades"
android:title="@string/grades_title"
android:onClick="showReportIssue"
android:title="@string/report_issue"
app:showAsAction="never" />
</menu>

1
app/src/main/res/values-de/strings.xml

@ -34,4 +34,5 @@
<string name="error">FEHLER!</string>
<string name="ossc_timeout_message">Timeout-Fehler bei OSSC. Versuch mal später.</string>
<string name="load_weblog_error_message">Weblog kann nicht aktualisiert werden. Versuch mal später.</string>
<string name="report_issue">Problem melden</string>
</resources>

1
app/src/main/res/values-en/strings.xml

@ -35,4 +35,5 @@
<string name="error">ERROR!</string>
<string name="ossc_timeout_message">OSSC has timed out. Try again later.</string>
<string name="load_weblog_error_message">Could not load new weblog data. Try again later.</string>
<string name="report_issue">Report Issue</string>
</resources>

1
app/src/main/res/values/strings.xml

@ -56,4 +56,5 @@
<string name="error">ERROR!</string>
<string name="ossc_timeout_message">OSSC has timed out. Try again later.</string>
<string name="load_weblog_error_message">Could not load new weblog data. Try again later.</string>
<string name="report_issue">Report Issue</string>
</resources>
Loading…
Cancel
Save