111
This commit is contained in:
@@ -70,6 +70,8 @@ dependencies {
|
||||
//短视频
|
||||
api project(':video')
|
||||
api project(':common')
|
||||
implementation 'androidx.appcompat:appcompat:1.3.0'
|
||||
implementation 'com.google.android.material:material:1.4.0'
|
||||
annotationProcessor rootProject.ext.dependencies["arouter-compiler"]
|
||||
api files('libs/OpenInstall_v2.3.0.jar')
|
||||
implementation project(path: ':lib_country_code')
|
||||
|
||||
@@ -5,7 +5,10 @@
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity android:name=".activity.OneLoginActivity"></activity>
|
||||
<activity
|
||||
android:name=".MsgSettActivity"
|
||||
android:exported="false" />
|
||||
<activity android:name=".activity.OneLoginActivity" />
|
||||
<activity
|
||||
android:name=".activity.WeekWebViewActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
@@ -56,7 +59,7 @@
|
||||
<activity
|
||||
android:name=".activity.SearchActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@style/CAppTheme"/>
|
||||
android:theme="@style/CAppTheme" />
|
||||
<activity
|
||||
android:name=".activity.FollowActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
@@ -122,8 +125,7 @@
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".activity.MyWebViewActivity2"
|
||||
android:screenOrientation="portrait" />
|
||||
<!--融云消息列表界面-->
|
||||
android:screenOrientation="portrait" /> <!-- 融云消息列表界面 -->
|
||||
<activity
|
||||
android:name=".activity.PDLiveConversationListActivity"
|
||||
android:hardwareAccelerated="true"
|
||||
@@ -131,7 +133,9 @@
|
||||
android:screenOrientation="portrait"
|
||||
android:theme="@style/noAnimationStyle"
|
||||
android:windowSoftInputMode="stateHidden|adjustResize" />
|
||||
|
||||
<activity
|
||||
android:name=".activity.MsgSettActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -277,23 +277,23 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
// RTCLib 初始化
|
||||
RCRTCConfig.Builder config = RCRTCConfig.Builder.create();
|
||||
RCRTCEngine.getInstance().init(MainActivity.this, config.build());
|
||||
// FirebaseMessaging.getInstance().getToken()
|
||||
// .addOnCompleteListener(new OnCompleteListener<String>() {
|
||||
// @Override
|
||||
// public void onComplete(@NonNull Task<String> task) {
|
||||
// if (!task.isSuccessful()) {
|
||||
// Log.w(TAG, "Fetching FCM registration token failed", task.getException());
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// // Get new FCM registration token
|
||||
// String token = task.getResult();
|
||||
//
|
||||
// // Log and toast
|
||||
// Log.d(TAG, token);
|
||||
// Toast.makeText(MainActivity.this, token, Toast.LENGTH_SHORT).show();
|
||||
// }
|
||||
// });
|
||||
FirebaseMessaging.getInstance().getToken()
|
||||
.addOnCompleteListener(new OnCompleteListener<String>() {
|
||||
@Override
|
||||
public void onComplete(@NonNull Task<String> task) {
|
||||
if (!task.isSuccessful()) {
|
||||
Log.w(TAG, "Fetching FCM registration token failed", task.getException());
|
||||
return;
|
||||
}
|
||||
|
||||
// Get new FCM registration token
|
||||
String token = task.getResult();
|
||||
|
||||
// Log and toast
|
||||
Log.d(TAG, token);
|
||||
Toast.makeText(MainActivity.this, token, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
});
|
||||
boolean showInvite = getIntent().getBooleanExtra(Constants.SHOW_INVITE, false);
|
||||
mRootView = (ViewGroup) findViewById(R.id.rootView);
|
||||
floatBanner = findViewById(R.id.float_banner_home);
|
||||
@@ -379,6 +379,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
if (showInvite) {
|
||||
showInvitationCode();
|
||||
}
|
||||
|
||||
checkVersion();
|
||||
loginIM();
|
||||
CommonAppConfig.getInstance().setLaunched(true);
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.yunbao.main.activity;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import com.yunbao.common.activity.AbsActivity;
|
||||
import com.yunbao.main.R;
|
||||
|
||||
public class MsgSettActivity extends AbsActivity {
|
||||
|
||||
|
||||
@Override
|
||||
protected int getLayoutId() {
|
||||
return R.layout.activity_msg_sett;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void main() {
|
||||
super.main();
|
||||
setTitle("消息通知");
|
||||
}
|
||||
}
|
||||
@@ -96,7 +96,9 @@ public class SettingActivity extends AbsActivity implements OnItemClickListener<
|
||||
FollowActivity.forward(mContext, CommonAppConfig.getInstance().getUid(),1);
|
||||
} else if (bean.getId() == SETTING_CLEAR_CACHE) {//清除缓存
|
||||
clearCache(position);
|
||||
}
|
||||
}else if (bean.getId() == 21) {//清除缓存
|
||||
startActivity(new Intent(SettingActivity.this,MsgSettActivity.class));
|
||||
}
|
||||
} else {
|
||||
if (bean.getId() == 17) {//意见反馈要在url上加版本号和设备号
|
||||
href += "&version=" + android.os.Build.VERSION.RELEASE + "&model=" + android.os.Build.MODEL;
|
||||
|
||||
@@ -60,7 +60,7 @@ public class PDLiveCustomConversationProvider extends BaseConversationProvider {
|
||||
if (userInfo != null && !TextUtils.isEmpty(userInfo.getExtra())) {
|
||||
IMLoginModel model = new Gson().fromJson(userInfo.getExtra(), IMLoginModel.class);
|
||||
if (model != null && TextUtils.equals(model.getIsAdmin(), "1"))
|
||||
Glide.with(holder.getContext()).asDrawable().load("https://qny.shayucm.com/Instructors.png").into(imgNew);
|
||||
Glide.with(holder.getContext()).asDrawable().load("https://downs.yaoulive.com/Instructors.png").into(imgNew);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder {
|
||||
super.init();
|
||||
|
||||
img_trophy = (ImageView) findViewById(R.id.img_trophy);
|
||||
ImgLoader.display(mContext, "https://qny.shayucm.com/gif_trophy.gif", img_trophy);
|
||||
ImgLoader.display(mContext, "https://downs.yaoulive.com/gif_trophy.gif", img_trophy);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
221
main/src/main/res/layout/activity_msg_sett.xml
Normal file
221
main/src/main/res/layout/activity_msg_sett.xml
Normal file
@@ -0,0 +1,221 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#F4F6F8"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
<include layout="@layout/view_title" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="73dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:background="@color/color_white">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="26dp"
|
||||
android:gravity="center|left"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="動態消息"
|
||||
android:textColor="#ff1e1f20"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="主播發佈新動態通知"
|
||||
android:textColor="#ffc7c8c9"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/special_switch"
|
||||
android:layout_width="40.8dp"
|
||||
android:layout_height="24.8dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginRight="25dp"
|
||||
android:src="@mipmap/special_icon_off" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="73dp"
|
||||
android:background="@color/color_white">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="26dp"
|
||||
android:gravity="center|left"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="動態消息"
|
||||
android:textColor="#ff1e1f20"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="主播發佈新動態通知"
|
||||
android:textColor="#ffc7c8c9"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40.8dp"
|
||||
android:layout_height="24.8dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginRight="25dp"
|
||||
android:src="@mipmap/special_icon_off" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="73dp"
|
||||
android:background="@color/color_white">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="26dp"
|
||||
android:gravity="center|left"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="動態消息"
|
||||
android:textColor="#ff1e1f20"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="主播發佈新動態通知"
|
||||
android:textColor="#ffc7c8c9"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40.8dp"
|
||||
android:layout_height="24.8dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginRight="25dp"
|
||||
android:src="@mipmap/special_icon_off" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="73dp"
|
||||
android:background="@color/color_white">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="26dp"
|
||||
android:gravity="center|left"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="動態消息"
|
||||
android:textColor="#ff1e1f20"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="主播發佈新動態通知"
|
||||
android:textColor="#ffc7c8c9"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40.8dp"
|
||||
android:layout_height="24.8dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginRight="25dp"
|
||||
android:src="@mipmap/special_icon_off" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="73dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:background="@color/color_white">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="26dp"
|
||||
android:gravity="center|left"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="動態消息"
|
||||
android:textColor="#ff1e1f20"
|
||||
android:textSize="16sp" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="主播發佈新動態通知"
|
||||
android:textColor="#ffc7c8c9"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="40.8dp"
|
||||
android:layout_height="24.8dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_gravity="end|center_vertical"
|
||||
android:layout_marginRight="25dp"
|
||||
android:src="@mipmap/special_icon_off" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user