From 5871962bfb1c001335dcec720b306090b285dd6a Mon Sep 17 00:00:00 2001 From: GKF Date: Wed, 22 May 2019 13:55:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=AE=E5=BD=95=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/AndroidManifest.xml | 2 +- app/src/main/java/io/legado/app/App.kt | 1 + .../main/java/io/legado/app/{view => ui/main}/MainActivity.kt | 2 +- app/src/main/res/layout/app_bar_main.xml | 2 +- app/src/main/res/layout/content_main.xml | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) rename app/src/main/java/io/legado/app/{view => ui/main}/MainActivity.kt (99%) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 02e358841..d3339c502 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -26,7 +26,7 @@ tools:ignore="AllowBackup,GoogleAppIndexingWarning"> diff --git a/app/src/main/java/io/legado/app/App.kt b/app/src/main/java/io/legado/app/App.kt index e6fcf2122..85bca3c93 100644 --- a/app/src/main/java/io/legado/app/App.kt +++ b/app/src/main/java/io/legado/app/App.kt @@ -4,6 +4,7 @@ import android.app.Application class App : Application() { + override fun onCreate() { super.onCreate() diff --git a/app/src/main/java/io/legado/app/view/MainActivity.kt b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt similarity index 99% rename from app/src/main/java/io/legado/app/view/MainActivity.kt rename to app/src/main/java/io/legado/app/ui/main/MainActivity.kt index 8a6f64c65..2053e43d8 100644 --- a/app/src/main/java/io/legado/app/view/MainActivity.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt @@ -1,4 +1,4 @@ -package io.legado.app.view +package io.legado.app.ui.main import android.os.Bundle import com.google.android.material.floatingactionbutton.FloatingActionButton diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index 9f8165bb8..ef693f0b6 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -5,7 +5,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context=".view.MainActivity"> + tools:context=".ui.main.MainActivity"> + tools:context=".ui.main.MainActivity">