Skip to content

Commit

Permalink
Merge pull request #35 from ritwikshanker/refactor/about-screen-update
Browse files Browse the repository at this point in the history
Added another contributor
  • Loading branch information
ritwikshanker authored Oct 8, 2020
2 parents 2c67e9d + 083f311 commit 248e4a1
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ local.properties
.idea/*.xml

# ignore apk files
.idea/caches/
.idea/codeStyles/
.idea/copyright/
.idea/dictionaries/
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_icon_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
android:fullBackupContent="@xml/backup_descriptor">
<activity
android:name=".MainActivity"
android:screenOrientation="portrait">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.example.gocoronago.about

import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.TypedValue
Expand All @@ -24,7 +23,8 @@ class AboutFragment : Fragment() {
private val contributors = listOf(
Contributor("Ritwik Shanker", "🇮🇳", true),
Contributor("Sunny", "🇮🇳"),
Contributor("M. Asrof Bayhaqqi", "🇮🇩")
Contributor("M. Asrof Bayhaqqi", "🇮🇩"),
Contributor("Jacob", "\uD83C\uDDF7\uD83C\uDDFA")
)

override fun onCreateView(
Expand Down Expand Up @@ -80,7 +80,7 @@ class AboutFragment : Fragment() {

private fun createContributorTextView(index: Int, contributor: Contributor): TextView {
val contributorText = "${contributor.flag} ${contributor.name}" +
if (contributor.owner) " (Owner)" else ""
if (contributor.owner) " (Owner)" else ""
return TextView(requireContext()).apply {
text = contributorText
setTextSize(TypedValue.COMPLEX_UNIT_SP, 14f)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.example.gocoronago.stayHome
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import androidx.appcompat.app.AppCompatActivity
import com.example.gocoronago.R

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import android.content.Intent
import android.os.Bundle
import android.view.Gravity
import android.view.LayoutInflater
import android.view.Menu
import android.view.View
import android.view.ViewGroup
import android.widget.*
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.example.gocoronago.ui.main

import android.content.Context
import com.example.gocoronago.HomePage.Summary
import com.example.gocoronago.base.BaseRepo

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.example.gocoronago.ui.main

import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider

Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/xml/backup_descriptor.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<!-- Exclude specific shared preferences that contain GCM registration Id -->
</full-backup-content>

0 comments on commit 248e4a1

Please sign in to comment.