Skip to content

Commit

Permalink
Refactor the ui class in app module
Browse files Browse the repository at this point in the history
  • Loading branch information
AsemLab committed Sep 30, 2024
1 parent 46329b0 commit 148ac59
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 22 deletions.
22 changes: 11 additions & 11 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,24 @@
<!-- </intent-filter> -->
</activity>
<activity
android:name=".MainActivity"
android:exported="true">
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->

<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
</activity>
<activity android:name=".RegisterForResultActivity" />
<activity
android:name=".NotificationProgressActivity"
android:name=".ui.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ui.RegisterForResultActivity" />
<activity
android:name=".ui.NotificationProgressActivity"
android:exported="true">
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->

<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
</activity>

<receiver
android:name=".download.DownloadCompleteReceiver"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.asemlab.samples
package com.asemlab.samples.ui

import android.Manifest
import android.content.pm.PackageManager
Expand All @@ -9,6 +9,7 @@ import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import com.asemlab.samples.R
import com.asemlab.samples.download.FileDownloaderImp


Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package com.asemlab.samples
package com.asemlab.samples.ui

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.lifecycle.coroutineScope
import com.asemlab.samples.R
import com.asemlab.samples.utils.NotificationsUtils
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.asemlab.samples
package com.asemlab.samples.ui

import android.Manifest
import android.annotation.SuppressLint
Expand All @@ -15,6 +15,7 @@ import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import androidx.core.graphics.drawable.RoundedBitmapDrawableFactory
import androidx.databinding.DataBindingUtil
import com.asemlab.samples.R
import com.asemlab.samples.databinding.ActivityRegisterForResultBinding


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.asemlab.samples
package com.asemlab.samples.ui

import android.content.res.Configuration
import android.graphics.Color
Expand All @@ -9,6 +9,7 @@ import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import com.asemlab.samples.utils.Colors
import com.asemlab.samples.databinding.FragBinding

class TestFrag(private val title: String) : Fragment() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.asemlab.samples
package com.asemlab.samples.utils

import android.graphics.Color

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.asemlab.samples.MainActivity">
tools:context="com.asemlab.samples.ui.MainActivity">

<Button
android:id="@+id/frag1"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_notification_progress.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".NotificationProgressActivity">
tools:context=".ui.NotificationProgressActivity">

</androidx.constraintlayout.widget.ConstraintLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_register_for_result.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".RegisterForResultActivity">
tools:context=".ui.RegisterForResultActivity">

<ImageView
android:id="@+id/img"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/frag.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".TestFrag">
tools:context=".ui.TestFrag">

<TextView
android:id="@+id/title"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/frag_2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".TestFrag">
tools:context=".ui.TestFrag">

<TextView
android:id="@+id/title"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/frag_3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".TestFrag">
tools:context=".ui.TestFrag">


<TextView
Expand Down

0 comments on commit 148ac59

Please sign in to comment.