Skip to content

Commit

Permalink
Move AboutCardRow to components package
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Feb 12, 2017
1 parent 44b0d41 commit 958c957
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/topjohnwu/magisk/AboutActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import android.view.WindowManager;
import android.widget.TextView;

import com.topjohnwu.magisk.components.AboutCardRow;
import com.topjohnwu.magisk.components.Activity;
import com.topjohnwu.magisk.utils.Logger;
import com.topjohnwu.magisk.utils.Utils;
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/topjohnwu/magisk/SettingsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ protected Void doInBackground(Void... voids) {
getApplication().suNotificationType = Utils.getPrefsInt(prefs, "su_notification", 1);
break;
case "developer_logging":
getApplication().devLogging = prefs.getBoolean("developer_logging", false);
MagiskManager.devLogging = prefs.getBoolean("developer_logging", false);
break;
case "shell_logging":
getApplication().shellLogging = prefs.getBoolean("shell_logging", false);
MagiskManager.shellLogging = prefs.getBoolean("shell_logging", false);
break;
}
setSummary();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.topjohnwu.magisk;
package com.topjohnwu.magisk.components;

import android.content.Context;
import android.content.res.TypedArray;
Expand All @@ -26,6 +26,8 @@
import android.widget.LinearLayout;
import android.widget.TextView;

import com.topjohnwu.magisk.R;

/**
* @author dvdandroid
*/
Expand Down
14 changes: 7 additions & 7 deletions app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,35 +56,35 @@
android:textAppearance="@style/TextAppearance.AppCompat.Headline"/>
</LinearLayout>

<com.topjohnwu.magisk.AboutCardRow
<com.topjohnwu.magisk.components.AboutCardRow
android:id="@+id/app_version_info"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_info_outline"
app:text="@string/app_version"/>

<com.topjohnwu.magisk.AboutCardRow
<com.topjohnwu.magisk.components.AboutCardRow
android:id="@+id/app_changelog"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_history"
app:text="@string/app_changelog"/>

<com.topjohnwu.magisk.AboutCardRow
<com.topjohnwu.magisk.components.AboutCardRow
android:id="@+id/app_developers"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_person"
app:text="@string/app_developers"/>

<com.topjohnwu.magisk.AboutCardRow
<com.topjohnwu.magisk.components.AboutCardRow
android:id="@+id/app_translators"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_language"
app:text="@string/app_translators"/>

<com.topjohnwu.magisk.AboutCardRow
<com.topjohnwu.magisk.components.AboutCardRow
android:id="@+id/app_source_code"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand All @@ -109,14 +109,14 @@
android:layout_marginBottom="8dp"
android:orientation="vertical">

<com.topjohnwu.magisk.AboutCardRow
<com.topjohnwu.magisk.components.AboutCardRow
android:id="@+id/support_thread"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_xda"
app:text="@string/support_thread"/>

<com.topjohnwu.magisk.AboutCardRow
<com.topjohnwu.magisk.components.AboutCardRow
android:id="@+id/donation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down

0 comments on commit 958c957

Please sign in to comment.