fixed course name not being updated on change
* minor GUI improvements
This commit is contained in:
		@ -24,7 +24,6 @@ package org.mosad.seil0.projectlaogai.fragments
 | 
			
		||||
 | 
			
		||||
import android.content.Context
 | 
			
		||||
import android.os.Bundle
 | 
			
		||||
import android.renderscript.Sampler
 | 
			
		||||
import android.util.TypedValue
 | 
			
		||||
import android.view.LayoutInflater
 | 
			
		||||
import android.view.View
 | 
			
		||||
@ -132,7 +131,6 @@ class SettingsFragment : Fragment() {
 | 
			
		||||
 | 
			
		||||
        linLayoutCourse.setOnClickListener {
 | 
			
		||||
            selectCourse(context!!)
 | 
			
		||||
            txtView_Course.text = cCourse.courseName // update txtView
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        linLayoutAbout.setOnClickListener {
 | 
			
		||||
@ -263,6 +261,7 @@ class SettingsFragment : Fragment() {
 | 
			
		||||
 | 
			
		||||
                    uiThread {
 | 
			
		||||
                        dialog.dismiss()
 | 
			
		||||
                        txtView_Course.text = cCourse.courseName // update txtView
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,23 +1,35 @@
 | 
			
		||||
<?xml version="1.0" encoding="utf-8"?>
 | 
			
		||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
              android:orientation="vertical"
 | 
			
		||||
              android:layout_width="match_parent"
 | 
			
		||||
              android:layout_height="match_parent" android:id="@+id/linLayout_Meal" android:padding="7dp">
 | 
			
		||||
        android:id="@+id/linLayout_Meal"
 | 
			
		||||
        android:layout_width="match_parent"
 | 
			
		||||
        android:layout_height="match_parent"
 | 
			
		||||
        android:orientation="vertical"
 | 
			
		||||
        android:paddingLeft="7dp"
 | 
			
		||||
        android:paddingTop="2dp"
 | 
			
		||||
        android:paddingRight="7dp"
 | 
			
		||||
        android:paddingBottom="2dp">
 | 
			
		||||
 | 
			
		||||
    <TextView
 | 
			
		||||
            android:id="@+id/txtView_MealHeading"
 | 
			
		||||
            android:layout_width="match_parent"
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:layout_marginBottom="2dp"
 | 
			
		||||
            android:text="@string/meal"
 | 
			
		||||
            android:layout_width="match_parent"
 | 
			
		||||
            android:layout_height="wrap_content" android:id="@+id/txtView_MealHeading" android:textSize="18sp"
 | 
			
		||||
            android:textAlignment="center" android:paddingBottom="5dp"
 | 
			
		||||
            android:textStyle="bold"/>
 | 
			
		||||
            android:textAlignment="center"
 | 
			
		||||
            android:textSize="18sp"
 | 
			
		||||
            android:textStyle="bold" />
 | 
			
		||||
 | 
			
		||||
    <TextView
 | 
			
		||||
            android:id="@+id/txtView_Meal"
 | 
			
		||||
            android:layout_width="match_parent"
 | 
			
		||||
            android:layout_height="wrap_content" android:id="@+id/txtView_Meal" android:textSize="15sp"
 | 
			
		||||
            android:textAlignment="center"/>
 | 
			
		||||
            android:layout_height="wrap_content"
 | 
			
		||||
            android:textAlignment="center"
 | 
			
		||||
            android:textSize="15sp" />
 | 
			
		||||
 | 
			
		||||
    <View
 | 
			
		||||
            android:id="@+id/divider_meal"
 | 
			
		||||
            android:layout_width="match_parent"
 | 
			
		||||
            android:layout_height="1dp"
 | 
			
		||||
            android:background="?dividerColor"
 | 
			
		||||
    />
 | 
			
		||||
            android:layout_marginTop="3dp"
 | 
			
		||||
            android:background="?dividerColor" />
 | 
			
		||||
</LinearLayout>
 | 
			
		||||
		Reference in New Issue
	
	Block a user