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" applicationId "com.nareshkumarrao.eiweblog"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 30 targetSdkVersion 30
versionCode 6
versionName "0.10.2"
versionCode 7
versionName "0.10.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 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", "type": "SINGLE",
"filters": [], "filters": [],
"versionCode": 6,
"versionName": "0.10.2",
"versionCode": 7,
"versionName": "0.10.3",
"outputFile": "app-release.apk" "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){ fun showGrades(item: MenuItem){
startActivity(Intent(this, GradesActivity::class.java)) 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_marginLeft="32dp"
android:layout_marginEnd="16dp" android:layout_marginEnd="16dp"
android:layout_marginRight="16dp" android:layout_marginRight="16dp"
android:gravity="right|center_vertical"
android:gravity="end|center_vertical"
android:text="Prof. Max Mustermann" android:text="Prof. Max Mustermann"
android:textColor="@color/black" android:textColor="@color/black"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"

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

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

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

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

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

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

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

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